【问题标题】:Monitor idle threads in Tomcat监控 Tomcat 中的空闲线程
【发布时间】:2016-06-12 00:45:23
【问题描述】:

有没有一种快速的方法来监控运行时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 这样的代理 - 它可以实现。但是除了我可以在特定时间间隔转储此信息之外的其他任何东西吗?

提前致谢!

【问题讨论】:

    标签: tomcat threadpool


    【解决方案1】:

    您可以使用 tomcat 管理器应用程序(内置),它执行相同的操作。

    【讨论】:

      猜你喜欢
      • 2011-12-09
      • 2013-05-06
      • 2010-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 2013-05-04
      相关资源
      最近更新 更多