How to specify your own JVM parameters on Express WAS.

本文介绍如何在Express WebSphere Application Server (WAS)中通过编辑server.xml文件来指定自定义的JVM参数,包括内存设置和其他JVM选项。

 

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.<o:p></o:p>

We can specify them in server.xml in Express WAS by following below steps.<o:p></o:p>

1) Find XML snippet like below in server.xml.<o:p></o:p>

1.   ...    <o:p></o:p>

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

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

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

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

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"/>   <o:p></o:p>

7.     processDefinitions>   <o:p></o:p>

8.   ...   <o:p></o:p>

2)There are some preset parameters in element, and then find genericJvmArguments attribute to specify your own JVM parameters like below.<o:p></o:p>

1.          genericJvmArguments="-Xms256m -Xmx1500m -Xheapdump:event=vmstart,vmstop"   <o:p></o:p>

<o:p> </o:p>

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值