WildFly JVM Settings: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
==Standalone Mode== | ==Standalone Mode== | ||
Modify <tt>standalone.conf</tt> as follows: | |||
<pre> | <pre> | ||
... | ... | ||
JAVA_OPTS="-Xms1000m -Xmx2000m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m ..." | |||
... | ... | ||
</pre> | </pre> | ||
Revision as of 17:44, 27 March 2017
Internal
Overview
JVM settings can be declared in the server's configuration files, as shown below, and are propagated to the server JVMs.
Configuration
Standalone Mode
Modify standalone.conf as follows:
... JAVA_OPTS="-Xms1000m -Xmx2000m -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m ..." ...
Domain Mode
domain.xml
host.xml
host.xml allows "named" <jvm> declarations.
<host ..> ... <jvms> <jvm name="jvm-a" ...> </jvm name="jvm-b" ...> ... </jvms> ... </host>