JVM configuration
JVM Parameters
Edit your application's zero.config configuration file to change the parameters
used to start the application's JVM. For instance, the following configuration stanza:
/config/zso/jvmargs += [
"-Xmx64M"
]
The previous stanza will always add the -Xmx64M parameter to the the JVM of the application.
To allow flexibility in the
parameters used for different Java Runtimes, WebSphere sMash will use the list of values found at
/config/zso/jvmArgs as a list of system properties. Then the values found under
that configuration branch will be compared to the property returned by the JVM. If the JVM
property contains the configured value, then the list of
Strings found under that configuration leaf will added to the JVM arguments list.
For situations where a JVM parameter should only be added under specific runtimes, then system properties
can be used to match against that JVM to apply the argument. For example, the following configuration block
adds the -Xmx64M argument to any JVM whose java.specification.version system
property returns a string which contains value 1.6.
/config/zso/jvmargs/java.specification.version/1.6 += [ "-Xmx64M" ]