`

jconsole connect to jmx management on linux server

    博客分类:
  • JAVA
阅读更多

转载自:http://blog.csdn.net/mengxuwq/archive/2007/07/03/1677742.aspx

 

 

You should check the following:

  • Check if the hostname correctly resolves to the host address.

    Run "hostname -i" command. If it reports 127.0.0.1, JConsole would not be able to connect to the JVM running on that Linux machine. To fix this issue, edit /etc/hosts so that the hostname resolves to the host address.

  • Check if the Linux machine is configured to accept packets from the host where JConsole runs on to connect to the application.

    Packet filtering is built in the Linux kernel. You can run "/sbin/iptables --list" to determine if an external client is allowed to connect to the JMX agent created for remote management. You can use the following command to add a rule to allow an external client such as JConsole to connect:

    /usr/sbin/iptables -I INPUT -s jconsole-host -p tcp --destination-port jmxremote-port -j ACCEPT

    where jconsole-host is either the hostname or the host address on which JConsole runs on and jmxremote-port is the port number set for com.sun.management.jmxremote.port for remote management.

分享到:
评论

相关推荐

    Jconsole&JMX监控

    JConsole是一款随Sun JDK 1.5发布而来的Java监控和管理工具,它支持Java Management Extensions (JMX)规范,允许用户通过图形界面监控Java虚拟机(JVM)的运行状态。无论是在本地还是远程环境下,JConsole都能提供强大...

    jmx例子一则

    JMX(Java Management Extensions)是Java平台提供的一种标准管理框架,用于管理和监控应用程序、设备和服务。这个例子将探讨如何在实际应用中使用JMX来实现远程监控和管理功能。 首先,JMX允许开发者定义名为...

    JMX配置与使用

    Java Management Extensions(JMX)是Java平台上的一个标准,它提供了管理和监视应用程序、服务、硬件设备等资源的能力。JMX允许开发人员创建可管理和监视的组件,并将它们集成到Java应用中。以下是对JMX配置与使用...

    jconsole training

    2. 输入`jconsole`命令,会出现"Connect to Agent"窗口。窗口中有三个选项卡:Local、Remote和Advanced。在Remote选项卡中,你可以输入服务器的IP和端口进行连接。 连接成功后,JConsole界面将展示多个选项卡,如...

    jmx入门

    Java Management Extensions(JMX)是Java平台上的一个标准技术,用于管理和监控应用程序、系统和服务。JMX提供了一种灵活的框架,使得开发者可以创建、注册和管理管理对象(MBeans),这些对象代表了应用程序的各个...

    zookeeperJmx.rar

    1. **连接到Zookeeper的JMX端点**:使用`MBeanServerConnection`接口连接到Zookeeper的JMX服务器,这可以通过`JMXConnectorFactory.connect()`方法完成,传入JMX服务器的URL和必要的认证信息。 2. **查找和检索...

    java利用ManagementFactory获取tomcat的一些信息例子

    在Java编程语言中,我们可以利用Java管理扩展(Java Management Extensions, JMX)和ManagementFactory类来获取应用程序,如Tomcat服务器的运行时信息。本文将深入探讨如何通过这些工具来监控Tomcat的一些关键信息。...

Global site tag (gtag.js) - Google Analytics