如何管理tomcat中的所有应用程序

时间:2011-12-10 09:08:13

标签: java tomcat memory-management

我的tomcat服务器上运行了5个应用程序。我想构建一些工具,我可以从应用程序列表中选择一个应用程序,而不是能够查看以下内容 -

 1.)Detect low memory
 2.)Enable or disable GC and class loading verbose tracing
 3.)Detect deadlocks
 4.)Control the log level of any loggers in an application
 5.)Memory used by that application.
 6.)Thread view for that application.

我想拥有某种开源,以便我可以修改它并将其集成到我的网页项目中,以便我可以直接在网页中查看它。是否存在某些内容。?

2 个答案:

答案 0 :(得分:0)

为Tomcat服务器启用JMX:Monitoring and Managing Tomcat。然后,您可以使用任何JMX控制台进行管理。 JConsole是JDK中捆绑的那个。

答案 1 :(得分:0)