Show Table of Contents
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.
- As root, increase the user thread limit for the system.
[root@server ~]# ulimit -u 4096
- Open the
rhq-server.shfile to set the new JVM settings.[root@server ~]# vim serverRoot/jon-server-3.2.GA/bin/rhq-server.sh
- Change the Java options to increase the heap size,
-Xmsfor the minimum heap and-Xmxfor the maximum. For example:RHQ_CONTROL_JAVA_OPTS="
-Xms512M -Xmx1024M-XX:MaxPermSize=128M -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true" - Restart the server to load the new heap settings.
[root@server ~]# serverRoot/jon-server-3.2.GA/bin/rhqctl start --server

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.