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内存,但是不会设置,也不知道能不能解决,请大家帮帮忙!
我想设置heap 大小 -XMS等,但是不知道在哪里设置,我设置在 catalina.sh 文件中,但是tomcat一启动就停了。但不知道再哪里设置,能举个例子不?谢谢大家。 --------------------编程问答-------------------- server里面的进程定义有个jvm虚拟机可以调内存 --------------------编程问答-------------------- 换内存吧,我看就这 --------------------编程问答-------------------- 不会,帮顶 --------------------编程问答-------------------- JVMDG217: Dump Handler is Processing OutOfMemory - Please Wait.
JVMDG315: JVM Requesting Heap dump file
JVMDG318: Heap dump file written to /dpsun/tomcat5.0/bin/heapdump84754.121477003
6.phd
JVMDG303: JVM Requesting Java core file
JVMDG304: Java core file written to /dpsun/tomcat5.0/bin/javacore84754.121477004
0.txt
JVMDG274: Dump Handler has Processed OutOfMemory.
JVMST109: Insufficient space in Javaheap to satisfy allocation request
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.luheng.jsbank.web.system.ActionServlet.doAction(ActionServlet.jav
a(Inlined Compiled Code))
at com.luheng.jsbank.web.system.ActionServlet.doPost(ActionServlet.java(
Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code
))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code
))
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java(Compiled Code))
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java(Compiled Code))
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java(Compiled Code))
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java(Compiled Code))
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a(Compiled Code))
at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java(Compiled Code))
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java(Compiled Code))
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java(Compiled Code))
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a(Compiled Code))
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava(Compiled Code))
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java(Compiled Code))
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava(Compiled Code))
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java(Compiled Code))
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a(Compiled Code))
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java(Compiled Code))
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java(Compiled Code))
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a(Compiled Code))
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Comp
iled Code))
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java(Co
mpiled Code))
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
(Compiled Code))
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java(Compiled Code))
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
(Compiled Code))
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:568)
Caused by: java.lang.OutOfMemoryError
at java.lang.StringBuffer.append(StringBuffer.java(Compiled Code))
at com.luheng.jsbank.web.apet.table.ATable.paint(ATable.java:140)
at com.luheng.jsbank.web.apet.table.ATable.createHtml(ATable.java:93)
at com.luheng.jsbank.web.action.ScoutAction.sendThreadInfo(ScoutAction.j
ava:245)
... 33 more
--------------------编程问答-------------------- 内存不够
系统启动时将jvm的内存设置大一些
补充:企业软件 , WebSphere