How to specify your own JVM parameters on Express WAS.

阅读更多

 

As we known, we can specify our own JVM parameters by console in WAS, but there is no entry to do such actions in Express WAS.

We can specify them in server.xml in Express WAS by following below steps.

1) Find XML snippet like below in server.xml.

1.   ...   

2.   <processDefinitions xmi:type="processexec:JavaProcessDef" xmi:id="JavaProcessDef_1188379175937" workingDirectory="${USER_INSTALL_ROOT}" executableTargetKind="JAVA_CLASS" executableTarget="com.ibm.ws.runtime.WsServer">  

3.       <execution xmi:id="ProcessExecution_1188379175937" processPriority="20" runAsUser="" runAsGroup=""/>  

4.       <ioRedirect xmi:id="OutputRedirect_1188379175937" stdoutFilename="${SERVER_LOG_ROOT}/native_stdout.log" stderrFilename="${SERVER_LOG_ROOT}/native_stderr.log"/>  

5.       <monitoringPolicy xmi:id="MonitoringPolicy_1188379175937" maximumStartupAttempts="3" pingInterval="60" pingTimeout="300" autoRestart="true" nodeRestartState="STOPPED"/>  

6.       <jvmEntries xmi:id="JavaVirtualMachine_1188379175937" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7778" genericJvmArguments="-Xms256m -Xmx1500m"/>  

7.     processDefinitions>  

8.   ...  

2)There are some preset parameters in element, and then find genericJvmArguments attribute to specify your own JVM parameters like below.

1.          genericJvmArguments="-Xms256m -Xmx1500m -Xheapdump:event=vmstart,vmstop"  

 

你可能感兴趣的:(JVM,XML,Socket,IBM)