简体   繁体   中英

How to list all MBeans using JMX client

I am trying to list all published applications using JMX client 'jconsole' but nothing seems to be happening as the screen stays on that console. Is there a command to use to list all published applications?

It appeared my Java installation was corrupt so had to re-install it. Now its responding and loading up. I am now able to connect and view the MBeans.

Also running the following commands from remote Linux machine also worked:

java -jar jmxterm-1.0-alpha-4-uber.jar -l <remote server name>:<port>

Then type domains from the prompt to get the MBeans lists, then type beans to get the corresponding domain type.

The simplest tool is the jps command included in the jdk. It just lists the running JVMs. When listing all local applications, it's not for sure whether a JMX tool can establish a JMX connection to all of the JVMs from this list. The bigger problem is that this list will be exactly the same as jconsole provides you and since I don't understand your problem description I don't know whether jps will help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM