服务器 win2003用的 apache2.2 做反向代理 到tomcat (apache-tomcat-6.0.35  解压版)服务器上部署了两个tomcat(一个tomcat下一个应用)现在问题是tomcat隔几天时间就自动停掉了,查看tomcat/logs/catalina.2012-09-23.log日志  并未看到有报错信息。请大哥大姐们   帮忙看看    这个要怎么定位问题?   

解决方案 »

  1.   

    可能是缓存过大,堆溢出,把tomcat内存设置大一点试试。
      

  2.   

    已经在 catalina.bat  第一行加了   set JAVA_OPTS=-Xms256m -Xmx512m  设置jvm 初始和最大内存昨晚重启应用   早上看的tomcat状态OS: Physical memory: 4086.68 MB Available memory: 3325.57 MB Total page file: 5963.38 MB Free page file: 5053.84 MB Memory load: 18
    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
      

  3.   


    JDK 版本: jdk1.6.0_10我是通过运行startup.bat  启动tomcat的
      

  4.   

    最好把任务管理器也打开,看看cpu等各项指标的变化。
      

  5.   

    我现在也出现这样的问题,不过我的日志里会有错误日志,目录在log下,直接报内存溢出,你看看你LOG下有没有一份很大的日志
      

  6.   


    没啊  两个tomcat的catalina日志什么错都没  Free memory: 12.18 MB Total memory: 37.23 MB Max memory: 63.56 MB刚才看了一下另一个tomcat的运行状态   最大内存是默认的   就60多M
      

  7.   

    一般就是内存问题,如果tomcat的各项参数没有问题那么你就需要检查代码了
      

  8.   

    内存,还有是不是服务器重启了,将tomcat服务设置为自动启动
      

  9.   


    现在两个tomcat  set JAVA_OPTS=-Xms256m -Xmx512m 设置jvm 初始和最大内存都是startup.bat启动的   要注册成服务启动码?
      

  10.   

    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天左右   窗口就自动关了   然后上面是日志
      

  11.   

    -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]这个几个线程是做什么的