View AMX Monitoring MBeans in JConsole

Building on the previous entry '1-2-3 Monitoring', you can see the generated AMX Monitoring MBeans with JConsole.

If you have java in the system path, just type 'jconsole' on the command line.
In the 'New Connection' dialog, select 'Remote Process' and type in 'localhost:8686'.
Leave the Username and Password blank.

Now select the MBeans tab.
Expand the 'amx' folder. Any folder with a '-mon' suffix, will be a monitoring MBean. If you followed the previous steps to turn on JVM monitoring, you should see the JVM monitoring MBeans.
Expand the 'memory-mon' folder and '/mon/server-mon[server]' subfolder.
Click on 'jvm/memory'. You can see the ObjectName on the right side:
amx:pp=/mon/server-mon[server],type=memory-mon,name=jvm/memory.

Then select Attributes and on the right, double-click on one of the values 'javax.management.openmbean.CompositeDataSupport'. You will see the details of that statistic.

Here's a snapshot.

The ObjectNames for all the JVM Monitoring MBeans:
amx:pp=/mon/server-mon[server],type=class-loading-system-mon,name=jvm/class-loading-system
amx:pp=/mon/server-mon[server],type=memory-mon,name=jvm/memory
amx:pp=/mon/server-mon[server],type=compilation-system-mon,name=jvm/compilation-system
amx:pp=/mon/server-mon[server],type=garbage-collector-mon,name=jvm/garbage-collectors/Copy
amx:pp=/mon/server-mon[server],type=operating-system-mon,name=jvm/operating-system
amx:pp=/mon/server-mon[server],type=runtime-mon,name=jvm/runtime
amx:pp=/mon/server-mon[server],type=thread-system-mon,name=jvm/thread-system
amx:pp=/mon/server-mon[server],type=threadinfo-mon,name=jvm/thread-system/thread-10

The monitoring MBeans are created using the gmbal API (http://kenai.com/projects/gmbal).

The MBeans don't get created unless there's an RMI connection, such as when viewing through JConsole or using the Admin Console.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jennifer Chou

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today