How to set Java command-line arguments for WebSphere Application Server Single Server (AEs)
 Technote (FAQ)
 
Problem
The administrative console for WebSphere® Application Server Single Server (AEs) limits options for setting Java™ command-line arguments used by the Application Server.
 
Solution
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"
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Java SDK
Operating system(s): Windows
Software version: 4.0.7
Software edition:
Reference #: 1176926
IBM Group: Software Group
Modified date: Mar 31, 2006