struts2在tomcat中允许一段时间后挂掉
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
检查下你的dbcp配置吧。
自己顶一下
Filter
怎么才能把过滤器,监听tomcat关闭,释放线程,非常感谢!
过滤器,监听tomcat关闭,释放线程! 试试 把运行结果粘贴出来。我再帮你分析~