Increasing Heap Memory Size in Jboss Configuration File

Follow the steps below for increasing the heap memory size in Jboss configuration:
  1. Login to Provisioning Manager/ SNM server with root user credentials.
  2. Go to path: cd /opt/jboss/bin
  3. 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_MOD­ULES_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"
  4. Save the changes.
  5. Run webserver_config command.
  6. 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.