Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use JMX Monitoring in zookeeper

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article shows you how to use JMX monitoring in zookeeper. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

Uname-r check the linux system version and find that it is centos 7.

CentOS 7.0 uses firewall as the firewall by default, which is changed to iptables firewall here. Firewall:systemctl start firewalld.service# start firewallsystemctl stop firewalld.service# stop firewallsystemctl disable firewalld.service# disable firewall boot

At first, you can ping the virtual machine ip, but the port is not good. The virtual machine jconsole can access the zookeeper cluster, so you can troubleshoot the firewall restrictions on the port and turn off the firewall.

Insert in zoomain

-Djava.rmi.server.hostname=192.168.31.183-Dcom.sun.management.jmxremote.port=8891-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false

I have three zookeeper here to avoid port occupancy

Zookeeper1 configuration

-Djava.rmi.server.hostname=192.168.31.183-Dcom.sun.management.jmxremote.port=8891-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false

Zookeeper2 configuration

-Djava.rmi.server.hostname=192.168.31.183-Dcom.sun.management.jmxremote.port=8892-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false

Zookeeper3 configuration

-Djava.rmi.server.hostname=192.168.31.183-Dcom.sun.management.jmxremote.port=8893-Dcom.sun.management.jmxremote.authenticate=false-Dcom.sun.management.jmxremote.ssl=false

After the configuration is complete, restart the zookeeper service.

In the bin directory of the local jdk installation directory, open jconsole.exe

The above is how to use JMX monitoring in zookeeper. 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report