在Resin配置參数实现JConsole远程监控JVM
在Resin中配置中配置下列參数,就能够是实现了!
<jvm-arg>-Dcom.sun.management.jmxremote</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.port=9999</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
<jvm-arg>-Djava.rmi.server.hostname=123.150.169.227</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.port=9999</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.ssl=false</jvm-arg>
<jvm-arg>-Dcom.sun.management.jmxremote.authenticate=false</jvm-arg>
<jvm-arg>-Djava.rmi.server.hostname=123.150.169.227</jvm-arg>
注意:authenticate=false,ssl=false,在连接的时候须要username和password!