2015-05-15 46 views

回答

2

要在IBM的Websphere使JMX打開WebSphere管理控制檯和: 瀏覽到:服務器 - >服務器類型 - > WebSphere應用程序服務器 - > [SERVER_NAME]

展開Java和進程管理並單擊進程定義 單擊Java虛擬機 在通用JVM參數字段中添加以下屬性:

-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=1099 -Djava.rmi.server.hostname=XX.228.75.XX 

重新啓動服務器

enter image description here

當服務器啓動時,開放的VisualVM並添加一個新的遠程連接: 在連接領域,把服務器主機和以前配置的端口,比如1099

enter image description here

enter image description here

+1

感謝Jamie Craane的博客:http://jcraane.blogspot.com.es/2012/01/monitoring-ibm-jvm-with-visualvm.html此解決方案對我無效,因爲我連接到遠程服務器,並且需要添加屬性-D java.rmi.server.hostname = XX.228.75.XX –