Tomcat maxthreads,我做错了什么?

Mau*_*ice 0 java tomcat

在catalina.out中,我看到此消息出现在日志中:

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

这是否意味着一个过程正在占用某些东西,还是我需要增加线程大小?

重新启动tomcat后,我收到了像这条消息的垃圾邮件:
"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."

有办法解决我的情况吗?

Jon*_*eet 6

是的,听起来你有一些永远不会完成的请求处理程序.每次调用它时,它基本上会吸收另一个线程,直到你的池中的线程用完为止.

您需要确定哪个请求无法完成,并修复代码.如果您可以转储所有线程的堆栈,则很可能会清楚哪些请求无法完成.