How to set the JVM Heap size and Perm/Metaspace size on JBoss EAP
Issue
- How do I change the size of the JVM's heap (in the young generation or the tenured generation) and the permanent generation in
JBoss EAP? - We already set host.xml that -Xms cccc and -Xmx zzzz,but not working.
- How to set the JVM options in
JBoss EAPon Windows? - Increase jvm heapsize using admin console or via cli.
- Heap size is set as below using -Xmx and -Xms parameters for a JVM in EAP domain mode. But the JVM does not reflect these values.
<server name="test-one" group="main-server-group" auto-start="true" update-auto-start-with-server-status="true">
<jvm name="default">
<jvm-options>
<option value="-server "/>
<option value="-Xms2048M"/>
<option value="-Xmx3072M"/>
<option value="-XX:MetaspaceSize=96m"/>
<option value="-XX:MaxMetaspaceSize=256m"/>
</jvm-options>
</jvm>
- Unable to adjust heap size [-Xmx and -Xms parameters] at server level in EAP domain mode. Also below warning is observed in host-controller.log
WARN [org.jboss.as.host.controller] (External Management Request Threads -- 2) WFLYHC0016: Ignoring <option value="-Xmx3072M" for jvm 'default' since 'HEAP' was set.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 4
- 5
- 6
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.