[collectd] JMX Parsing - Embedded Values

Dallin Young dallin.young at gmail.com
Fri Jan 16 16:37:15 CET 2015


Hi All!

 

I'm trying to setup monitoring for Garbage Collection using GenericJMX.  I
have successfully configured the collectd and java process and collecting
other metrics.  It appears that G1 Garbage Collection uses a
javax.management.openmbean.CompositeData for LastGcInfo.  I'm not sure how
to parse this using the GenericJMX parser.  Please see the example output
below:

 

java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:50071 "java.lang:name=G1
Young Generation,type=GarbageCollector"

Attributes:

LastGcInfo: LastGcInfo (type=javax.management.openmbean.CompositeData)

CollectionCount: CollectionCount (type=long)

CollectionTime: CollectionTime (type=long)

MemoryPoolNames: MemoryPoolNames (type=[Ljava.lang.String;)

Name: Name (type=java.lang.String)

Valid: Valid (type=boolean)

ObjectName: ObjectName (type=javax.management.ObjectName)

 

java -jar cmdline-jmxclient-0.10.3.jar - 127.0.0.1:50071 "java.lang:name=G1
Young Generation,type=GarbageCollector" LastGcInfo

01/16/2015 10:35:52 -0500 org.archive.jmx.Client LastGcInfo:

GcThreadCount: 6

duration: 52

endTime: 144351565

id: 121

memoryUsageAfterGc:

key: G1 Old Gen

  value:

   committed: 152043520

   init: 152043520

   max: 262144000

   used: 26231160

key: G1 Perm Gen

  value:

   committed: 36700160

   init: 20971520

   max: 85983232

   used: 35893952

key: Code Cache

  value:

   committed: 4980736

   init: 2555904

   max: 50331648

   used: 4895488

key: G1 Eden Space

  value:

   committed: 109051904

   init: 110100480

   max: -1

   used: 0

key: G1 Survivor Space

  value:

   committed: 1048576

   init: 0

   max: -1

   used: 1048576

memoryUsageBeforeGc:

key: G1 Old Gen

  value:

   committed: 152043520

   init: 152043520

   max: 262144000

   used: 26257208

key: G1 Perm Gen

  value:

   committed: 36700160

   init: 20971520

   max: 85983232

   used: 35893952

key: Code Cache

  value:

  committed: 4980736

   init: 2555904

   max: 50331648

   used: 4895488

key: G1 Eden Space

  value:

   committed: 109051904

   init: 110100480

   max: -1

   used: 103809024

key: G1 Survivor Space

  value:

   committed: 1048576

   init: 0

   max: -1

   used: 1048576

startTime: 144351513

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20150116/18da2f9f/attachment.html>


More information about the collectd mailing list