0
点赞
收藏
分享

微信扫一扫

JAVA性能分析——jconsole

启动命令

本地程序

jconsole

本地程序,无需要设置参数即可被本机的JConsole连接。(jdk6后)

无认证连接

-Dcom.sun.management.jmxremote.port=8999 \  
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false

认证安全连接

​​https://docs.oracle.com/javase/6/docs/technotes/guides/management/agent.html#gdenv​​

远程连接

java -cp . -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.managent.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false JConsoleTest

另一台连接

jconsole 192.168.0.22:8999

性能分析

内存占用分析

JAVA性能分析——jconsole_java

线程

JAVA性能分析——jconsole_ide_02

下面有个按钮”检测到死锁“。

JAVA性能分析——jconsole_性能_03

VM摘要

JAVA性能分析——jconsole_ide_04

MBean

JAVA性能分析——jconsole_oracle_05
点这个按钮可以实时发送垃圾回收请求。


举报

相关推荐

0 条评论