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
沒有留言:
張貼留言