We volition last interested inward two files, located in:
JAVA_HOME\jre\lib\management
- jmxremote.access
- jmxremote.password.template, rename to jmxremote.password
What needs to last done amongst these files:
- Add an admin business office inward jmxremote.access, hence at the halt you lot should see:
monitorRole readonly admin readonly controlRole readwrite \ exercise javax.management.monitor.*,javax.management.timer.* \ unregister
- Then nosotros ask to add together the business office together with password inward jmxremote.password
monitorRole cloak-and-dagger controlRole cloak-and-dagger admin cloak-and-dagger
Then nosotros ask to trammel the owner's correct to read-only, correct clicking on the file together with clicking read-only won't do. Need to execute the lines below:
cacls jmxremote.password /P:R cacls jmxremote.access /P :R
Then for event I'm interested to monitor JBoss amongst JConsole. And I accept added JBoss inward eclipse's server view. I ask to add together the next inward Program Arguments:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9001 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.ssl=false
Assumming I desire to role port 9001.
Refer to the ikon below:
Finally run jconsole inward command prompt, choose org.jboss.xxx together with operate inward our admin together with password which is admin / secret.
0 komentar:
Please comment if there are any that need to be asked.