検索

このコンテンツは選択した言語では利用できません。

3.5. Tuning the Server JVM

download PDF
By default, the JBoss ON server runs with a modest allocated heap size and a configured thread limit that parallels the *nix system limit (1024). However, if the JBoss ON server is running on the same system as other resource-intensive applications such as PostgreSQL, then the JVM needs to be tuned to ensure that the JBoss ON server has adequate system resources. Otherwise, the server can encounter out of memory errors.
When tuning the server JVM, increase the heap size and increase the system thread limit to a high enough value that any memory errors are resolved while still leaving sufficient system resources for other applications.
  1. As root, increase the user thread limit for the system.
    [root@server ~]# ulimit -u 4096
  2. Open the rhq-server.sh file to set the new JVM settings.
    [root@server ~]# vim serverRoot/jon-server-3.2.GA/bin/rhq-server.sh
  3. Change the Java options to increase the heap size, -Xms for the minimum heap and -Xmx for the maximum. For example:
    RHQ_CONTROL_JAVA_OPTS="-Xms512M -Xmx1024M -XX:MaxPermSize=128M -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true"
  4. Restart the server to load the new heap settings.
    [root@server ~]# serverRoot/jon-server-3.2.GA/bin/rhqctl start --server
Red Hat logoGithubRedditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.