开发者

monitor tomcat executor?

How do I get a reference to the Tomcat Executor instances running within the web app? I need this so I 开发者_Python百科can query basic information, such as thread pool size and utilization.


Not a direct answer but I'd recommend to use JMX for this. To get a list of MBeans matching various criteria, use the MBeanServerConnection.queryNames() method. For example, to return a list of all the ThreadPool MBeans, use queryNames(new ObjectName("Catalina:type=ThreadPool,*", null)).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜