使用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