In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to use Zabbix to monitor multiple JVM processes, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.
1. Description of the scene:
Our environment uses microservices, and each program has a separate process and a separate port number, but some of the results queried with jps may have duplicate names, so some scripts are not suitable for this scenario.
II. Description of requirements:
You need to use Zabbix-server to monitor the jvm process on each Agent (monitoring items are shown in the template)
3. Prepare the environment:
1.jvm.py script (not my original, directly copy from Github, Github address is attached here, you can go to the destination address to check the relevant instructions)
2. Https://github.com/qiueer/zabbix/blob/master/Tomcat/usage.txt (zabbix/Tomcat/ {jvm.py | Qiueer-Template JMX Generic.xml} template and script address)
3.jdk-8u201-linux-x64.tar.gz
4.iptables configuration or shutdown
IV. Formal installation
1. Install JDK in each Agent, and configure the environment variables (first uploaded to the specified directory), and each Agent will do the following.
~] # tar zxvf jdk-8u201-linux-x64.tar.gz~] # vim / etc/profile / / add the following # JAVA environment variable export JAVA_HOME=/usr/local/jdk1.8.0_201 export JRE_HOME=$ {JAVA_HOME} / jre export CLASSPATH=.:$ {JAVA_HOME} / lib:$ {JRE_HOME} / lib:$CLASSPATH export JAVA_PATH=$ {JAVA_HOME} / bin:$ {JRE_HOME} / Bin export PATH=$PATH:$ {JAVA_PATH} ~] # source / etc/profile~] # ln-s / usr/local/jdk1.8.0_201/bin/java / bin/java / / if you don't make this link You can't get any information about jvm.
two。 Upload cmdline and jvm.py to the specified directory for testing (this is required for every Agent)
Zabbix_agentd.d] # pwd / etc/zabbix/zabbix_agentd.dzabbix_agentd.d] # mkdir scriptscript] # ll-rw-r--r-- 1 wenkai person 20124 Sep 10 18:55 cmdline-jmxclient-0.10.3.jar / / upload to / etc/zabbix/zabbix_agentd.d/script directory-rw-r-xr-x 1 root root 13941 Sep 10 18:57 jvm.pyscript] # python jvm.py-- list / / if data in JSON format is available, the script is available script] # python jvm.py-b 'java.lang:type=Memory'-k' HeapMemoryUsage.committed'-p 304971020067840
3. Configure the web interface template. Download the Qiueer-Template JMX Generic.xml template locally and import it into zabbix to form a new template. The template is equipped with automatic discovery rules, monitoring items and triggers.
4. The data on the monitored host can be found after a period of time after the configuration is completed, as follows.
Note: some monitoring items in the template are not applicable to our service. You can disable them here.
The above content is how to use Zabbix to monitor multiple JVM processes. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.