This content has been marked as final.
Show 2 replies
-
1. Re: Wildfly 9 - JVM arguments for server groups
nickarls Jun 9, 2016 2:08 AM (in response to mhemple)Haven't tried but looking at the schema docs
<xs:complexType name="jvmType"> <xs:all minOccurs="0" maxOccurs="1"> <xs:element name="heap" type="heapType" minOccurs="0"/> <!-- XX:PermSize, XX:MaxPermSize --> <xs:element name="permgen" type="bounded-memory-sizeType" minOccurs="0"/> <!-- Xss --> <xs:element name="stack" type="memory-sizeType" minOccurs="0"/> <xs:element name="agent-lib" type="jvm-agentLibType" minOccurs="0"/> <xs:element name="agent-path" type="jvm-agentPathType" minOccurs="0"/> <xs:element name="java-agent" type="jvm-javaagentType" minOccurs="0"/> <xs:element name="jvm-options" type="jvm-optionsType" minOccurs="0"/> <xs:element name="environment-variables" type="environmentVariablesType" minOccurs="0"/> </xs:all>
it might eat some other stuff, too
-
2. Re: Wildfly 9 - JVM arguments for server groups
mhemple Jun 9, 2016 4:38 PM (in response to nickarls)Thanks Nicklas. That works. JVM arguments can also be added in the server groups section of domain.xml using <jvm-options>:
<server-group name="main-server-group" profile="full">
<jvm name="default">
<heap size="64m" max-size="512m"/>
<jvm-options>
<option value="-XX:-HeapDumpOnOutOfMemoryError"/>
<option value="-XX:+UseCompressedOops"/>
</jvm-options>
</jvm>
<socket-binding-group ref="full-sockets"/>
</server-group>