介绍 JVM Monitor是一个与Eclipse集成的Java分析器,用于监视Java应用程序的CPU,线程和内存使用情况。官网:http://jvmmonitor.org/index.html JVM Monitor对于快速检查Java应用程序非常有用,无需事先准备任何启动配置。 JVM Monitor自动在本地主机上查找正在运行的JVM,您可以轻松地开始监视它们。它还支持通过提供主机名和端口号来监视远程主机上的Java应用程序。
如果需要进一步深入分析,您可以使用其他工具(例如TPTP,Memory Analyzer)作为下一步。
安装
1)eclipse在线安装:
open Eclipse Marketplace wizard (Help > Eclipse Marketplace...), search with the text 'JVM Monitor', and click Install button.
2)离线安装:
manually install by downloading zip file and unzipping in Eclipse dropins folder.
使用
1、本地使用:
1)Open Java Monitor perspective [] selecting Window > Open Perspective > Other... > Java Monitor.
2)start
3)Properties view
When you start monitoring a JVM and open Timeline page on Properties view, you can see the trend of the used heap memory, the loaded class count, the thread count and the CPU usage on charts by default.
2、远程使用:
1)打开jmx:
Start JVM on remote host with system properties for JMX remote management. The following example is the case of connecting with port 9876, without using SSL and without setting password.
-Dcom.sun.management.jmxremote.port=9876
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false