使用jconsole的前提条件

为了快速调试,使用简单方式:

 

本地:

java -Dcom.sun.management.jmxremote -jar Notepad.jar

 

远程:

 

Disabling Security

To disable both password authentication and SSL (no security), set these system properties when you start the JVM:

com.sun.management.jmxremote.port=portNum
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
 
也可以通过 jconsole pid方式打开
 
 

                            

你可能感兴趣的:(java,jvm,Security,sun)