Solve Problems Related to remote connection failure when centos6.5 uses JMX

Source: Internet
Author: User

Solve Problems Related to remote connection failure when centos6.5 uses JMX
Environment Description

  • System: centos6.5;
  • Tomcat: 5959,use commons-daemon-native.tar.gz to Configure Automatic startup;
  • Java: 1.7.0 _ 75-b13;
  • /Etc/hosts:
    • $ ServerIp localhost
    • : 1 localhost. localdomain localhost6 localhost6.localdomain6
    • $ ServerIp iZ258xcfjroZ localhost
  • Jmx Configuration:
    • -Dcom. sun. management. jmxremote
    • -Dcom. sun. management. JMX remote. port = 9115
    • -Dcom. sun. management. jmxremote. authenticate = false
    • -Dcom. sun. management. jmxremote. ssl = false;
  • Firewall Enabled
Cause Analysis
  1. If you use commons-daemon-native.tar.gz to configure tomcat to start automatically, the jmx configuration cannot be added to $ CATALINA_HOME/bin/catalina. sh, because the file is not used when the system starts, you need to add the jmx configuration in/etc/init. d/tomcat7 STARTUP script; check whether the jmx service is started by sudo netstat-anp | grep 9115;
  2. Firewall must be disabled because other ports are used for jconsole connection. This port is random;

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.