Increasing Heap Memory Size in Jboss Configuration File
Follow the steps below for increasing
the heap memory size in Jboss configuration:
- Login to Provisioning Manager/ SNM server with root user credentials.
- Go to path: cd /opt/jboss/bin
- Edit standalone.conf file and change the options
Xms256m and Xmx256m to the desired values. In the example below,
options are changed to 2048m.
JAVA_OPTS="-Xms2048m -Xmx2048m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Addresses=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.policy-permissions=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.as.management.blocking.timeout=600"
- Save the changes.
- Run webserver_config command.
- Select Re-start webserver option.
Note:
Be aware that although Jboss is replaced with Wildfly but still the Jboss name is used in the commands and location information.
↑