Hadoop Resource Monitoring __java multithreading

Source: Internet
Author: User


Within Hadoop is a resource-monitoring module that includes the following two:


Metrics* and Jmx/jmxjsonservlet

In fact, notice that in the Metrics2/util/mbeans, there is a sentence:
Final Mbeanserver mbs = Managementfactory.getplatformmbeanserver ();
It is also observed to comply with the JMX standard.

Simply put, jmx/jmxjsonservlet through the built-in jetty access to JMX Mbeanserver (its init () function proves it)

METRICS2 is also the same when it starts.


Users can do resource monitoring and information collection by accessing Jmx/jmxjsonservlet or by collecting adapter under METRICS2.

In Conf/hadoop-env, there are:
Export hadoop_namenode_opts= "-dcom.sun.management.jmxremote $HADOOP _namenode_opts"
Export hadoop_secondarynamenode_opts= "-dcom.sun.management.jmxremote $HADOOP _secondarynamenode_opts"
Export hadoop_datanode_opts= "-dcom.sun.management.jmxremote $HADOOP _datanode_opts"
Export hadoop_balancer_opts= "-dcom.sun.management.jmxremote $HADOOP _balancer_opts"
Export hadoop_jobtracker_opts= "-dcom.sun.management.jmxremote $HADOOP _jobtracker_opts"
You can modify the remote port opening for classes in Hadoop.

Conf/hadoop-metrics2.properties can be configured for export of resource monitoring information, such as ganglia.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.