监视Tomcat中的空闲线程

时间:2016-02-29 03:59:26

标签: tomcat threadpool

有没有一种快速方法可以在运行时监视tomcat线程池中空闲线程的总数?

有些东西会很有用,如:

Say suppose total of threads in thread pool : (m + n) , Would like to see something like :

Num of working threads : m 
Num of idle threads : n

据我所知,如果我附上像yourkit这样的代理,JMX - 它可以实现。但除此之外,我可以在一定的时间间隔转储此信息吗?

提前致谢!

1 个答案:

答案 0 :(得分:0)

您可以使用同样的tomcat管理器应用程序(内置)。