JVM Monitor学习

介绍
JVM Monitor是一个与Eclipse集成的Java分析器,用于监视Java应用程序的CPU,线程和内存使用情况。官网:http://jvmmonitor.org/index.html

JVM Monitor对于快速检查Java应用程序非常有用,无需事先准备任何启动配置。 JVM Monitor自动在本地主机上查找正在运行的JVM,您可以轻松地开始监视它们。它还支持通过提供主机名和端口号来监视远程主机上的Java应用程序。
如果需要进一步深入分析,您可以使用其他工具(例如TPTPMemory 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

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值