It is possible to set Java command-line arguments by
modifying the server-cfg.xml configuration file used in the
$WAS_ROOT/config file.
Typical Java configuration in server-cfg.xml:
<processDefinition xmi:type="server:JavaProcessDef"
xmi:id="ProcessDef_1" executableName="${JAVA_HOME}/bin/java"
commandLineArguments="" workingDirectory="${WAS_ROOT}/bin"
executableTargetKind="JAVA_CLASS"
executableTarget="com.ibm.ws.bootstrap.WSLauncher">
To add Java arguments, modify commandLineArguments="".
There are many reasons why you might want to change the JVM command line
arguments. For example, you can set the maximum heap size for the JVM AEs
Application Server to 1024 MB with the following setting:
commandLineArguments="-Xmx1024m"
Or you can set the stack size for the Java and native stacks to a larger
value (which might need to be done to address a
java.lang.StackOverflowError) with the following:
commandLineArguments="-Xss819200
-Xoss819200"
|