|
WAS 在部署 war包时 报错:java.lang.OutOfMemory
原因:war包太大
解决:...\IBM\WebSphere\AppServer\bin\wsadmin.bat 修改这个文件中的如下信息:
set PERFJAVAOPTION=-Xms256m -Xmx256m -Xquickstart
如果是在程序部署成功后报这个错误
原因:运行时内存太小
解决:...\IBM\WebSphere\AppServer1\profiles\AppSrv01\config\cells\AngelPCNode01Cell\nodes\AngelPCNode01\servers\server1\server.xml 修改如下信息:
<jvmEntries xmi:id="JavaVirtualMachine_1183122130078" verboseModeClass="false" verboseModeGarbageCollection="false" verboseModeJNI="false" initialHeapSize="512" maximumHeapSize="1024" runHProf="false" hprofArguments="" debugMode="false" debugArgs="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" genericJvmArguments="">
<systemProperties xmi:id="Property_1" name="com.ibm.security.jgss.debug" value="off" required="false"/>
<systemProperties xmi:id="Property_2" name="com.ibm.security.krb5.Krb5Debug" value="off" required="false"/>
</jvmEntries>
|
|