使用zabbix-java-gateway監控JVM


首先安裝並配置zabbix-java-gateway。

其次java應用配置jmxRemote。

然后在zabbix-frontend添加JMX interfaces。

最后應用模板。模板見附件http://files.cnblogs.com/files/memoryredbook/simu_Template_JMX_Generic_1.7.xml。此模板是在zabbix自帶的模板基礎上修改而成。

可以使用jmxterm查詢JVM參數。

 

##監控Tomcat

tomcat啟動腳本增加jmxremote參數:

CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=xxxx -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=$CATALINA_HOME/conf/xxxxpass -Dcom.sun.management.jmxremote.access.file=$CATALINA_HOME/conf/xxxxuser -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=$IP"

 

xxxxuser:

user1 readonly

 

xxxxpass:

user1 pass1

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM