简体   繁体   中英

Tomcat maxthreads, am I doing something wrong?

In the catalina.out I saw this message appearing in the log:

Maximum number of threads (200) created for connector with address null and port 80

Does this mean a process is hogging something or do I need to just increase the thread size?

After restarting tomcat, I had spam like this message:
"SEVERE: The web application [/MyServlet] 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."

Is there a way to solve my situation?

Yes, it sounds like you've got some request handler which never completes. Each time it's invoked, it'll basically soak up another thread, until you've run out of threads in the pool.

You need to work out which request is failing to complete, and fix the code. If you can take a dump of the stacks of all threads, it's likely to become clear which requests are failing to complete.

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