2015年11月30日 星期一

JConsole Connect to JBOSS as Window Service

JConsole is a graphical monitoring tool to monitor Java Virtual Machine (JVM) and Java applications both on a local or remote machine.

Problem:
If the JBoss is started as Window Service, the JConsole cannot connect to the process.

Solution:

The below is required to add in Standalone.bat

set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.port=8086
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.ssl=false
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote.authenticate=false

Then, Start JBoss by Window Service

JConsole Connect to Remote Process
localhost:8086

Reference: http://docs.oracle.com/javase/7/docs/technotes/guides/management/jconsole.html



沒有留言:

張貼留言