简体   繁体   中英

Why is Tomcat not closing HTTP connections?

I recently installed an application on Tomcat 7. After a few days it stops responding. I have seen on Tomcat that there are some http connections do not time out even if they are closed is set to 20.000ms . Why is this happening?

The connection timeoue only applies when Tomcat is waiting for data from the client. If Tomcat is waiting for the application to write data it will wait indefinitely.

You should take a series of 3 thread dumps, roughly 15s apart, to try and see what is goin on. I suspect you'll find some long running application code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM