Jconsole Solutions for Java applications that cannot be remotely connected to Linux __linux

Source: Internet
Author: User

1. Check the firewall, preferably close the firewall;

Jconsole connections need to open random ports, if the firewall is open, you can not guarantee that the random port is open.

Related orders See: http://blog.csdn.net/rachel_luo/article/details/7938119


2. View the host name, the host name needs to be the actual IP address;

The Jconsole connection is done through the hostname.

Related commands:

View Host Name: Hostname-i

Modify Host Name:

Method 1:vi/etc/hosts edit: 127.0.0.1 localhost.localdomain localhost

IP (actual IP) host name

Vi/etc/sysconfig/network Edit: Hostname= host name (same hostname as previous configuration)

Restart Services: Service network restart

Method 2: Command line input: Sysctl kernel.hostname= host Name

Note: After modifying the host name, restart the Java application to be used for jconsole monitoring.

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.