VisualVMã§ãªã¢ã¼ãããã»ã¹ã®ã¢ãã¿ãªã³ã°ããã
JMXçµç±ã§æ¥ç¶ããå ´åã®æºå
javaèµ·åæã«æ¬¡ã®ãªãã·ã§ã³ãä»ãã¦èµ·åããã
- -Dcom.sun.management.jmxremote.port=3333
- -Dcom.sun.management.jmxremote.ssl=false
- -Dcom.sun.management.jmxremote.authenticate=false
jstatdçµç±ã§æ¥ç¶ããå ´åã®æºå
ã¾ããããªã·ã¼ãã¡ã¤ã«ã以ä¸ã®å 容ã§ä½æããã
all.policy
grant { permission java.security.AllPermission; };
ããã¦jstatdãèµ·åããæã«ä½æããããªã·ã¼ãã¡ã¤ã«ãæå®ããã
jstatd -J-Djava.security.policy=all.policy &
VisualVMå´ã®è¨å®
VisualVMã§Remote Hostã追å ããã¨ãjstatdã®ãã®ã¯èªåçã«èªèãããã
JMXçµç±ã®å ´åã¯å¥éJMXã追å ããã
ãæ軽ã«è¦ããªãèµ·åæ¸ã¿ããã°ã©ã ã«å¯¾ãã¦ãã¢ãã¿ãªã³ã°ã§ããjstatdã®ã»ãã楽ã
ã§ããªã¢ã¼ãã ã¨è¦ããæ
å ±ãå°ãªã(ãã³ããã¨ããªã)ãããçµå±ã¯ç°å¢ã工夫ãã¦ãã¼ã«ã«ã§è¦ãå½¢ã«ããã»ãã便å©ã