简体   繁体   English

为什么JMX中显示的线程数与tomcat设置不匹配?

[英]Why number of threads show in JMX does not match the tomcat settings?

My tomcat settings: 我的tomcat设置:

maxThreads="100" minSpareThreads="25" maxSpareThreads="75"

According to JMX, my current busy thread is 3 根据JMX,我当前的繁忙线程是3

currentThreadsBusy = 3

But

currentThreadCount= 100

Why it used up all my threads? 为什么它用完了我所有的线程? Shouldn't the current thread be something like 78 (75+3)? 当前线程不应该是78 (75 + 3)之类的吗?

The last version of Tomcat that has a maxSpareThreads parameter is 5.5. 具有maxSpareThreads参数的Tomcat的最新版本是5.5。 You should have warnings in your logs, as described here: Tomcat 7 maxSpareThreads ,liveDeploy ,debug 您应该在日志中显示警告,如下所示: Tomcat 7 maxSpareThreads,liveDeploy,debug

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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