簡體   English   中英

Tomcat maxthreads,我做錯了什么嗎?

[英]Tomcat maxthreads, am I doing something wrong?

在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."

有辦法解決我的情況嗎?

是的,這聽起來像您有一些永遠無法完成的請求處理程序。 每次調用它時,它基本上都會吸收另一個線程,直到池中的線程用完為止。

您需要確定哪個請求無法完成,然后修復代碼。 如果您可以轉儲所有線程的堆棧,則很可能會清楚哪些請求未能完成。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM