最近tomcat服务器不稳定,出现堆内存不够,然后系统就崩掉了...
测试了一下把初始化内存池从512调到了600,暂时可以了
内存泄露这种问题还真比较麻烦,很难查,只好加大内存量...一点点加
------------------------
2008-4-8 9:13:38 org.apache.coyote.http11.Http11Processor process
严重: Error finishing response
java.lang.OutOfMemoryError: Java heap space
at sun.util.resources.TimeZoneNames.getContents(Unknown Source)
at sun.util.resources.OpenListResourceBundle.loadLookup(Unknown Source)
at sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(Unknown Source)
at sun.util.resources.OpenListResourceBundle.handleGetObject(Unknown Source)
at sun.util.resources.TimeZoneNamesBundle.handleGetObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getStringArray(Unknown Source)
at sun.util.TimeZoneNameUtility.retrieveDisplayNames(Unknown Source)
at sun.util.TimeZoneNameUtility.retrieveDisplayNames(Unknown Source)
at java.util.TimeZone.getDisplayNames(Unknown Source)
at java.util.TimeZone.getDisplayName(Unknown Source)
at java.text.SimpleDateFormat.subFormat(Unknown Source)
at java.text.SimpleDateFormat.format(Unknown Source)
at java.text.SimpleDateFormat.format(Unknown Source)
at java.text.DateFormat.format(Unknown Source)
at org.apache.tomcat.util.http.FastHttpDateFormat.getCurrentDate(FastHttpDateFormat.java:109)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1582)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:962)
at org.apache.coyote.Response.action(Response.java:180)
at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:388)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:906)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
2008-4-8 9:13:55 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
严重: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing org.apache.jk.common.ChannelSocket$SocketAcceptor@c6fd6e, terminating thread
2008-4-8 9:14:09 org.apache.catalina.connector.CoyoteAdapter service
严重: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:13 org.apache.coyote.http11.Http11Processor process
严重: Error finishing response
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:21 org.apache.coyote.http11.Http11Processor process
严重: Error finishing response
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:34 org.apache.catalina.connector.CoyoteAdapter service
严重: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:50 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
严重: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing org.apache.tomcat.util.net.LeaderFollowerWorkerThread@d88d2d, terminating thread
--------------
chenjinlai
2008-04-08
测试了一下把初始化内存池从512调到了600,暂时可以了
内存泄露这种问题还真比较麻烦,很难查,只好加大内存量...一点点加
------------------------
2008-4-8 9:13:38 org.apache.coyote.http11.Http11Processor process
严重: Error finishing response
java.lang.OutOfMemoryError: Java heap space
at sun.util.resources.TimeZoneNames.getContents(Unknown Source)
at sun.util.resources.OpenListResourceBundle.loadLookup(Unknown Source)
at sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(Unknown Source)
at sun.util.resources.OpenListResourceBundle.handleGetObject(Unknown Source)
at sun.util.resources.TimeZoneNamesBundle.handleGetObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getObject(Unknown Source)
at java.util.ResourceBundle.getStringArray(Unknown Source)
at sun.util.TimeZoneNameUtility.retrieveDisplayNames(Unknown Source)
at sun.util.TimeZoneNameUtility.retrieveDisplayNames(Unknown Source)
at java.util.TimeZone.getDisplayNames(Unknown Source)
at java.util.TimeZone.getDisplayName(Unknown Source)
at java.text.SimpleDateFormat.subFormat(Unknown Source)
at java.text.SimpleDateFormat.format(Unknown Source)
at java.text.SimpleDateFormat.format(Unknown Source)
at java.text.DateFormat.format(Unknown Source)
at org.apache.tomcat.util.http.FastHttpDateFormat.getCurrentDate(FastHttpDateFormat.java:109)
at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1582)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:962)
at org.apache.coyote.Response.action(Response.java:180)
at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:388)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:906)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
2008-4-8 9:13:55 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
严重: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing org.apache.jk.common.ChannelSocket$SocketAcceptor@c6fd6e, terminating thread
2008-4-8 9:14:09 org.apache.catalina.connector.CoyoteAdapter service
严重: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:13 org.apache.coyote.http11.Http11Processor process
严重: Error finishing response
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:21 org.apache.coyote.http11.Http11Processor process
严重: Error finishing response
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:34 org.apache.catalina.connector.CoyoteAdapter service
严重: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
2008-4-8 9:14:50 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
严重: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing org.apache.tomcat.util.net.LeaderFollowerWorkerThread@d88d2d, terminating thread
--------------
chenjinlai
2008-04-08