struts2在tomcat中允许一段时间后挂掉

lrwcn 发布于 2015/03/24 21:16
阅读 824
收藏 0

struts2项目,起初的时候运行良好,但当访问了一定量的时候tomcat就会停止响应,表现为在登录页面,IE中的小圆圈不停的转,但没有出现返回页面,一直停留在登录页面。tomcat目录下的其它应用一般不受影响,但是有一次其它项目也同时挂掉了,求高手指点,非常感谢!

22-Mar-2015 18:15:14.655 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-80"]
22-Mar-2015 18:15:14.718 INFO [Thread-5] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-apr-8009"]
22-Mar-2015 18:15:14.780 INFO [Thread-5] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
22-Mar-2015 18:15:14.780 INFO [] org.apache.catalina.core.StandardWrapper.unload Waiting for 179 instance(s) to be deallocated for Servlet [default]
22-Mar-2015 18:15:15.874 INFO [] org.apache.catalina.core.StandardWrapper.unload Waiting for 179 instance(s) to be deallocated for Servlet [default]
22-Mar-2015 18:15:16.968 INFO [] org.apache.catalina.core.StandardWrapper.unload Waiting for 179 instance(s) to be deallocated for Servlet [default]
22-Mar-2015 18:15:17.077 WARNING [] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [math] 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. Stack trace of request processing thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.park(Unknown Source)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
 org.apache.tomcat.dbcp.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:582)
 org.apache.tomcat.dbcp.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:439)

加载中
0
JavaOlder
JavaOlder
过滤器,监听tomcat关闭,释放线程! 试试 把运行结果粘贴出来。我再帮你分析~
lrwcn
lrwcn
怎么才能把过滤器,监听tomcat关闭,释放线程,非常感谢!
0
lrwcn
lrwcn

自己顶一下

0
Qiurf
Qiurf
检查下你的dbcp配置吧。
返回顶部
顶部