此内容没有您所选择的语言版本。

3.5. Tuning the Server JVM


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
    Copy to Clipboard Toggle word wrap
  2. Open the rhq-server-env.sh script to set the new JVM settings.
    [root@server ~]# vim serverRoot/jon-server-3.3.0.GA/bin/rhq-server-env.sh
    Copy to Clipboard Toggle word wrap
  3. Change the Java options to increase the heap size, -Xms for the minimum heap and -Xmx for the maximum. For example:
    RHQ_SERVER_JAVA_OPTS="-Xms512M -Xmx1024M -XX:MaxPermSize=128M -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true"
    Copy to Clipboard Toggle word wrap
  4. Restart the server to load the new heap settings.
    [root@server ~]# serverRoot/jon-server-3.3.0.GA/bin/rhqctl start --server
    Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat