WildFly JVM Settings: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 35: Line 35:
===host.xml===
===host.xml===


<tt>host.xml</tt> allows "named" <tt><jvm></tt> declarations.
<pre>
<pre>
<host ..>
<host ..>

Revision as of 17:32, 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

<server ...>
    ...
    <jvm java-home="..." type="SUN|IBM" env-classpath-ignored="true">
        <heap>...</heap>
        <permgen>...</permgen>
        <stack>...</stack>
        <agent-lib>...</agent-lib>
        <agent-path>...</agent-path>
        <java-agent>...</java-agent>
        <jvm-options>...</jvm-options>
        <environment-variables>...</environment-variables>
        <launch-command>...</launch-command>
    </jvm>
    ...
</server>

Domain Mode

domain.xml

host.xml

host.xml allows "named" <jvm> declarations.

<host ..>
    ...
    <jvms>
        <jvm name="jvm-a" ...>
        </jvm name="jvm-b" ...>
        ...
    </jvms>
    ...
</host>