play java ã®ã¢ãã¿ãªã³ã°ããããã¦ãã±ã£ã¨çµã¿åããã¦ã§ãããã®ã ä½ããªãããã¯ãã·ã¨ããã¬ãã«ã§ãzabbixã§ç£è¦ããä½è£ããªãã¨ã客å ã®ç°å¢ã«æ軽ã«ãã£ã¨ããããã¨ããããããç¶æ³åãã Jolokiaã¨hawtioãçµã¿åããã¾ããï¼ã©ã¡ãããã£ã¨é©ãã使ãæ¹ãããæ°ããã¦ãªããªãã»ã»ã»ï¼ https://jolokia.org/index.html http://hawt.io/ Jolokiaã®è¨å® agentã®ãã¦ã³ãã¼ã å ¬å¼ãµã¤ããããjolokia-jvm-x.x.x-agent.jarãå ¥æã https://jolokia.org/download.html playã®èµ·åã¹ã¯ãªããã«javaagentã®è¨å®è¿½å playã®ãã«ãã§ä½ãããã¢ããªã®ã¹ã¯ãªããã®ä¸ã«ããªãã·ã§ã³ã®æ¸¡ãæ¹ã«ã¤ãã¦ã®ã³ã¡ã³ããä¸è¨ã®ããã«ããã¾ãã # jvm options
$ sudo yum -y groupinstall 'Development tools' $ sudo yum -y install cpan libyaml-devel expat-devel libxml2-devel $ sudo yum -y install gcc gcc-c++ glibc-devel.x86_64 $ perl -MCPAN -e shell cpan[1]> o conf prerequisites_policy follow cpan[2]> o conf commit cpan[3]> upgrade cpan[4]> YAML cpan[4]> install JMX::Jmx4Perl jmx4perl ======== jmx4perl is a command line utility for accessing Jolokia agents
ããã«ã¡ã¯ã寺岡ã§ãã ãã®è¨äºã¯ TECHSCORE Advent Calendar 2016 ã® 13 æ¥ç®ã®è¨äºã§ãã JConsole 使ã£ã¦ã¾ããï¼ JConsoleã使ãã¨ãCPUãã¡ã¢ãªã®ã¡ããªã¯ã¹ãJMXã®MBeanã使ã£ãã«ã¹ã¿ã ã¡ããªã¯ã¹ã®åå¾ã管çç³»ã®æä½ãå¼ã³åºããã¨ãã§ãã¾ãã JMXã¯JSR3ã¨ããæ´å²ãæããããä»æ§ã ããã£ã¦ãæ¢åã®ãã¬ã¼ã ã¯ã¼ã¯ãã©ã¤ãã©ãªã«ãå¤ãæ¡ç¨ããã¦ãã¾ãã GCãå¼ã³åºããããTomcatã®ã»ãã·ã§ã³æ å ±ãè¦ãããâ¦â¦ããã¨ãªãã§ãã§ãã¦ãã¾ãã¾ãã JConsoleã®å©ç¨æã¯ã対象ã®Javaããã»ã¹å ã§JMX Serverãèµ·åãã¦ããå¿ è¦ãããã¾ãã ãã¼ã«ã«ç°å¢ããããããèµ·åãªãã·ã§ã³ã§JMX Serverã®è¨å®ããã¦ããå ´åãJConsoleãç«ã¡ä¸ãã¦æ¥ç¶å ãé¸æããã ãã§OKã§ãã ä»åã¯ãä½ã®æºåããã¦ããªããµã¼ã
JavaVMãç£è¦ãããã¼ã«ç¾¤ ä»åã¯ãJava EEã¢ããªã±ã¼ã·ã§ã³ããã¥ã¼ãã³ã°ããéã«ä¾¿å©ãªãã¼ã«ãç´¹ä»ãã¾ããJavaVMã®ç¶æ ãç£è¦ï¼ã¬ãã¼ããããã¼ã«ã¯ãããªã¼ã»ã½ããã¦ã¨ã¢ã製åãå«ããããã¤ãæä¾ããã¦ãã¾ããç±³Oracleï¼ç±³Sun Microsystemsï¼ã®Javaç°å¢ã«ããæ¨æºã§ä¾¿å©ãªãã¼ã«ç¾¤ãä»ãã¦ãã¾ããæ¬è¨äºã§ã¯ãæ¨æºãã¼ã«ã§ããjconsoleã¨jstatã®2ã¤ãç´¹ä»ãã¾ãã 表1: 主ãªJavaVMç£è¦ï¼ã¬ãã¼ãã£ã³ã°ã»ãã¼ã« 製åå ç¹å¾´
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}