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

Jboss JMX monitors performance jconsole jvisualvm

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Recently, I encountered a performance problem of Jboss. In order to troubleshoot the problem, I decided to turn on JMX and use jconsole for real-time monitoring to analyze the performance. The configuration steps are as follows:

For details, please see: https://docs.jboss.org/author/display/WFLY8/JMX+subsystem+configuration

1. Configure the server:

A. Jconsole, a tool for analyzing WildFly, location: ${JBOSS_HOME} / bin/jconsole.sh

The script actually calls JDK's own jconsole.jar, tools.jar and WildFly's own jboss-cli-client.jar. For more information, please see the script jconsole.sh.

B. Open ${JBOSS_HOME} / modules/system/layers/base/org/wildfly/extension/io/main/module.xml and add the following three lines of red mark

C. Open the ${JBOSS_HOME} / domain/configuration/domain.xml file, modify the following jmx tag of each profile, and add the red part

Note the above two steps have been fixed in version 8.1.0 and need not be modified! 2. Add monitoring users:

Add Application User using ${JBOSS_HOME} / bin/add-user.sh, where it must be Application User

B. Empower the created user in the jboss management console and open the http://10.19.xx.xx:9990 console

C. After the above three steps are completed, restart the WildFly server, and then execute ${JBOSS_HOME} / bin/jconsole.sh

3. Use remote jconsole or jvisualvm monitoring:

A. Install jdk locally and download jboss-client.jar (available in jboss's bin directory)

B. Run jconsole and execute the command: "C:\ Program Files (x86)\ Java\ jdk1.7.0_10\ bin\ jboss-client.jar;C:\ Program Files (x86)\ Java\ jdk1.7.0_10\ lib\ jconsole.jar;C:\ Program Files (x86)\ Java\ jdk1.7.0_10\ lib\ tools.jar"

Enter service for remote call, such as service:jmx:http-remoting-jmx://10.19.xx.xx:8080, and fill in the user name and password created earlier.

Note: the port is the http service port of server. For example, two server,server1 ports have been created on this host, which are 8080 and 8180 server2 ports.

If you enter service:jmx:http-remoting-jmx://10.19.xx.xx:8080, it is monitoring server1.

If you enter service:jmx:http-remoting-jmx://10.19.xx.xx:8180, it is monitoring server2.

If you enter service:jmx:http-remoting-jmx://10.19.xx.xx:9990, it is the JVM process that monitors the domain controller (superadministrative user and password must be entered at this time)

C. Run jvisualvm and execute the command: jvisualvm-cp:a "C:\ Program Files (x86)\ Java\ jdk1.7.0_10\ bin\ jboss-client.jar"

Configuration is consistent with jconsole

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

Internet Technology

Wechat

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

12
Report