当前位置: 代码迷 >> Java Web开发 >> aix +tomcat5.0.28+jdk1.42的内存有关问题
  详细解决方案

aix +tomcat5.0.28+jdk1.42的内存有关问题

热度:697   发布时间:2016-04-17 12:40:19.0
aix +tomcat5.0.28+jdk1.42的内存问题?
aix +tomcat5.0.28+jdk1.42的内存问题? 
我把以前的工程部署到了Aix上(以前的是windows服务器,运行1年多都很稳定的),访问是好的,但是运行一会儿就抱错,说是内存溢出: 
**Out of memory, aborting** 
*** panic: JVMCL053: Cannot allocate memory in allocHeap for heap segment 
JVMDG217: Dump Handler is Processing Signal 6 - Please Wait. 
JVMDBG001: malloc failed to allocate 2621440 bytes, time: Sun Oct 14 15:19:55 27 
JVMDBG001: malloc failed to allocate 2097152 bytes, time: Sun Oct 14 15:19:55 27 
JVMDBG001: malloc failed to allocate 1572864 bytes, time: Sun Oct 14 15:19:55 27 
JVMDBG001: malloc failed to allocate 1048576 bytes, time: Sun Oct 14 15:19:55 27 
JVMDBG001: malloc failed to allocate 524288 bytes, time: Sun Oct 14 15:19:55 207 
JVMDG305: Java core not written, unable to allocate memory for print buffer. 
JVMDG215: Dump Handler has Processed Error Signal 6. 

JVMDG217: Dump Handler is Processing OutOfMemory - Please Wait.
JVMDG315: JVM Requesting Heap dump file
.JVMDG318: Heap dump file written to /usr/bonc_web/tomcat_5.0.28/bin/heapdump22d
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to /usr/bonc_web/tomcat_5.0.28/bin/javacore229t
JVMDG274: Dump Handler has Processed OutOfMemory.
JVMST109: Insufficient space in Javaheap to satisfy allocation request


界面错误是
javax.servlet.ServletException: JVMXE006:OutOfMemoryError, stAllocArray for executeJava failed

听说aix自带的虚拟机没有垃圾回收器,想放大JVM内存,但是不会设置,也不知道能不能解决,请大家帮帮忙!

------解决方案--------------------
应该跟aix没有关系吧,升级你的jdk版本看看
------解决方案--------------------
我的JDK是1.4.2的应该没有什么问题,就是说要设置Dump,但也不知道在哪里设置,我在catalina.sh中设置了-server -Xms800m -Xmx800m -XX:PermSize=64M -XX:MaxNewSize=256m -XX:MaxPermSize=128m ,但是tomcat启动不起来!
------解决方案--------------------
aix 好像是要使用安装IBM提供得JDK哦 .
我在windows修改过tomcat得jvm内存大小哈
在安装好的tomcat程序组里面有个config Tomcat可以设置
Initial memory pool 设置最小值
Maxinum memory pool 设置最大值
  相关解决方案