没啊 两个tomcat的catalina日志什么错都没 Free memory: 12.18 MB Total memory: 37.23 MB Max memory: 63.56 MB刚才看了一下另一个tomcat的运行状态 最大内存是默认的 就60多M
一般就是内存问题,如果tomcat的各项参数没有问题那么你就需要检查代码了
内存,还有是不是服务器重启了,将tomcat服务设置为自动启动
现在两个tomcat set JAVA_OPTS=-Xms256m -Xmx512m 设置jvm 初始和最大内存都是startup.bat启动的 要注册成服务启动码?
2012-12-1 14:18:58 org.apache.coyote.http11.Http11AprProtocol pause 信息: Pausing Coyote HTTP/1.1 on http-8282 2012-12-1 14:18:58 org.apache.coyote.ajp.AjpAprProtocol pause 信息: Pausing Coyote AJP/1.3 on ajp-8099 2012-12-1 14:18:59 org.apache.catalina.core.StandardService stop 信息: Stopping service Catalina 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 严重: The web application [] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [] appears to have started a thread named [scheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak. 2012-12-1 14:19:01 org.apache.coyote.http11.Http11AprProtocol destroy 信息: Stopping Coyote HTTP/1.1 on http-8282 还是这个问题啊 郁闷 tomcat开起来 3天左右 窗口就自动关了 然后上面是日志
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=c:\ 在启动参数加这个,可以在你内存溢出的时候dump下来, 然后分析大概是什么造成的 The web application [] appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak. 这个看起来是有什么地方一直在开新线程并且没有释放掉? 建议用 jstack id看看scheduler_Worker-[1-10]这个几个线程是做什么的
Process kernel time: 1.484 s Process user time: 11.156 s
JVM: Free memory: 206.51 MB Total memory: 254.12 MB Max memory: 508.06 MBajp-8009 :Max threads: 200 Current thread count: 0 Current thread busy: 0 Keeped alive sockets count: 0
Max processing time: 0 ms Processing time: 0.0 s Request count: 0 Error count: 0 Bytes received: 0.00 MB Bytes sent: 0.00 MBhttp-8282 :
Max threads: 200 Current thread count: 2 Current thread busy: 1 Keeped alive sockets count: 1
Max processing time: 1172 ms Processing time: 3.969 s Request count: 60 Error count: 4 Bytes received: 0.00 MB Bytes sent: 0.50 MB
JDK 版本: jdk1.6.0_10我是通过运行startup.bat 启动tomcat的
没啊 两个tomcat的catalina日志什么错都没 Free memory: 12.18 MB Total memory: 37.23 MB Max memory: 63.56 MB刚才看了一下另一个tomcat的运行状态 最大内存是默认的 就60多M
现在两个tomcat set JAVA_OPTS=-Xms256m -Xmx512m 设置jvm 初始和最大内存都是startup.bat启动的 要注册成服务启动码?
信息: Pausing Coyote HTTP/1.1 on http-8282
2012-12-1 14:18:58 org.apache.coyote.ajp.AjpAprProtocol pause
信息: Pausing Coyote AJP/1.3 on ajp-8099
2012-12-1 14:18:59 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:18:59 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [scheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
2012-12-1 14:19:01 org.apache.coyote.http11.Http11AprProtocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8282
还是这个问题啊 郁闷 tomcat开起来 3天左右 窗口就自动关了 然后上面是日志
在启动参数加这个,可以在你内存溢出的时候dump下来,
然后分析大概是什么造成的
The web application [] appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
这个看起来是有什么地方一直在开新线程并且没有释放掉?
建议用
jstack id看看scheduler_Worker-[1-10]这个几个线程是做什么的