近期在使用
基于Oracle JRockit Mission Control进行java性能分析
1、确保服务器端的jdk版本为R28 或以上,如果低于此版本请升级
下载地址:http://www.oracle.com/technetwork/middleware/jrockit/downloads/index.html
2、在本地安装 R28(含) 以上版本
3、在java启动时,增加以下jvm参数:
<jvm-arg>-Djava.rmi.server.hostname=127.0.0.1</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.port=9009</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
-Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.port=9009 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
4、在本地进入jdk安装目录,运行$JAVA_HOME/bin/jrmc.exe 即可
基于Oracle JRockit Mission Control进行java性能分析
1、确保服务器端的jdk版本为R28 或以上,如果低于此版本请升级
下载地址:http://www.oracle.com/technetwork/middleware/jrockit/downloads/index.html
2、在本地安装 R28(含) 以上版本
3、在java启动时,增加以下jvm参数:
<jvm-arg>-Djava.rmi.server.hostname=127.0.0.1</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.port=9009</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
-Djava.rmi.server.hostname=127.0.0.1 -Dcom.sun.management.jmxremote.port=9009 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
4、在本地进入jdk安装目录,运行$JAVA_HOME/bin/jrmc.exe 即可
本文介绍如何利用Oracle JRockit Mission Control进行Java应用程序的性能分析,包括配置远程服务器上的JDK版本、设置必要的JVM参数及在本地进行分析的具体步骤。
1340

被折叠的 条评论
为什么被折叠?



