本文介绍了用于Tomcat的基于Web的JMX控制台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在任何可用于Tomcat的基于Web的JMX控制台,这些控制台基本上提供与Tomcat的JMX代理Servlet相同的功能,但以更加用户友好的方式提供?

Are there any web based JMX consoles available for Tomcat that basically provide the same functionality as Tomcat's JMX Proxy Servlet but in a more user friendly manner?

我知道我可以在RMI上简单地使用jconsole,但是由于防火墙问题,该解决方案并不总是适用.它还需要额外的服务器端配置,在某些组织中,更改服务器端配置可能不是那么简单.

I understand that I could simply use jconsole over RMI but this solution is not always applicable because of firewall issues. It also requires extra server-side configuration and in some organizations changing server-side configurations might not be that straight-forward.

所以我想拥有一个简单的war文件,无需任何配置就可以将其放入容器中(暂时忘记安全管理器).另外,如果用户界面能够给人以质量和可靠性的印象,那将是很好的选择.

So what I would like to have is a simple war-file that I can just drop into my container without any configuration (lets forget security manager for now). Also, it would be nice if the user interface would be something that creates an impression of quality and reliability.

推荐答案

JMiniX 作为JAR文件发布,因此由您决定将其部署为应用程序的一部分还是作为Web应用程序进行部署.

JMiniX is released as a JAR file, so it is up to you if you deploy it as a part of your application or if you deploy it as an web application.

正在进行的工作是 Aji ,它看起来很有希望,并且可以运行控制台和应用程序以在不同的计算机上进行监视.

Work in progress is Aji which looks promising and which would allow running the Console and the application to monitor on different machines.

开箱即用的是 Tomcat Manager ,它提供了JMX代理接口.

Out of the box there is the Tomcat Manager which provides a JMX proxy interface.

Jolokia 是用于远程JMX访问的HTTP/JSON桥.有关实现的信息,请参见此博客一个基于JMX的仪表板.

Jolokia is an HTTP/JSON bridge for remote JMX access. See this blogpost for implementing a JMX based dashboard.

我切换(或被我们的客户强迫切换)到 PSI探针 ,它是Tomcat Manager的替代品. PSI Probe不提供JMX代理(已接受问题 ),但可以很好地显示Tomcat信息.从他们的网站上:

I switched (or was forced to switch by our customer) to PSI Probe, a replacement of Tomcat Manager. PSI Probe does not provide a JMX proxy (Issue accepted), but displays Tomcat information very well. From their web site:

与许多其他服务器监视工具不同,PSI Probe不需要对现有应用程序进行任何更改.它通过可访问Web的界面提供所有功能,只需将其部署到服务器即可使用.这些功能包括:

  • 请求:即使在每个应用程序的基础上,实时监视流量.
  • 会话:浏览/搜索属性,查看上一个IP,到期,估计大小.
  • JSP:浏览,查看源代码,进行编译.
  • 数据源:查看池使用情况,执行查询.
  • 日志:查看内容,下载,在运行时更改级别.
  • 线程:查看执行堆栈,杀死.
  • 连接器:状态,使用情况图表.
  • 集群:状态,使用情况图表.
  • JVM:内存使用情况图表,建议GC
  • Java服务包装程序:重新启动JVM.
  • 系统:CPU使用率,内存使用率,交换文件使用率.
  • Requests: Monitor traffic in real-time, even on a per-application basis.
  • Sessions: Browse/search attributes, view last IP, expire, estimate size.
  • JSP: Browse, view source, compile.
  • Data Sources: View pool usage, execute queries.
  • Logs: View contents, download, change levels at runtime.
  • Threads: View execution stack, kill.
  • Connectors: Status, usage charts.
  • Cluster: Status, usage charts.
  • JVM: Memory usage charts, advise GC
  • Java Service Wrapper: Restart JVM.
  • System: CPU usage, memory usage, swap file usage.

因此,总结一下:如果有像PSI Probe这样的工具,但是具有JMX代理功能,我会很高兴.不幸的是,我没有找到任何内容,但是已安排了PSI探针问题.

So to summarize it: If there would be a tool like PSI Probe but with JMX proxying functionality I would be happy. Unfortunately I did't find any, but a PSI Probe issue is scheduled.

这篇关于用于Tomcat的基于Web的JMX控制台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 14:31