tjthink的gravatar头像
tjthink 2016-01-11 11:42:22

apache tomcat7运行java web项目一段时间后为什么抛出异常自动停止?

Jan 11, 2016 9:13:40 AM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Jan 11, 2016 9:13:41 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8087"]
Jan 11, 2016 9:13:42 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Jan 11, 2016 9:13:42 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 200 instance(s) to be deallocated for Servlet [spring]
Jan 11, 2016 9:13:43 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 200 instance(s) to be deallocated for Servlet [spring]
Jan 11, 2016 9:13:44 AM org.apache.catalina.core.StandardWrapper unload
INFO: Waiting for 200 instance(s) to be deallocated for Servlet [spring]
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/music] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/music] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
Jan 11, 2016 9:13:45 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

Jan 11, 2016 9:13:46 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8087"]
Jan 11, 2016 9:13:46 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8087"]

所有回答列表(6)
遇见,的gravatar头像
遇见,  LV36 2016年1月11日

是不是用了hibernate 自己getSession() 没关闭

tjthink的gravatar头像
tjthink  LV8 2016年1月11日

都是用hibernateTemplate操作的

kaka的gravatar头像
kaka  LV19 2016年1月13日

 This is very likely to create a memory leak

偷颗菜抱回家的gravatar头像
偷颗菜抱回家  LV14 2016年1月13日

楼主,建议你去tomcat目录下的logs文件夹去查看下各个日志文件,会有详细的错误日志。

程序猿全敏的gravatar头像
程序猿全敏  LV29 2016年2月3日

肯定不是tomcat的问题,肯定是代码问题

lyxingcheng的gravatar头像
lyxingcheng 2016年11月7日

A valid shutdown command was received via the shutdown port. Stopping the Server instance.

从这句log可以看出,是有人在bin目录下执行了shutdown.sh

顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友