JMX collector does not support MXBeans

Description

Some of the values provided by Java 5 out of the box are provided as bundles of
values (or composite types) per attribute.

The JMX collector only supports mbeans that have a single values per attribute.

In order to effectively monitor MBeans such as Memory (for heap and non-heap
memory usage), we need support for MXBeans.

Environment

Operating System: Linux Platform: PC

Acceptance / Success Criteria

None

Attachments

3

Lucidchart Diagrams

Activity

Show:

Steve Hillier March 15, 2011 at 12:08 AM

TDD is the new philosophy for me. My next challenge is to develop me unit tests to validate the JMX collector code – specifically my modifications.

steve.

Steve Hillier March 15, 2011 at 12:07 AM

My latest testing has included Sun JDK 1.6 and is working with the 1.9.X latest SVN checkouts.

Steve Hillier March 15, 2011 at 12:03 AM

Marco:

Sorry, I did not see this comment until today (my bad – work is not being nice to me these days).

Yes, graphing is supported – I write metrics to jrb files – just like the collector did before my patch. There was no change there. Therefore graphing should work as it always has - even for these composite-type metrics.

In all my test cases there are no issues graphing the collected metrics, but I try to constrain my tests to JVM specific mbeans only (it's impossible to support otherwise). I'm curious to know more about the case you have that fails. Please post details to this page.

Actually – I recently realized that my original patch was missing the graph definitions for the data collected by the new default configuration.
Even worse: some JVM configurations were not supported by the new default configuration (ie: different Garbage collectors). I've proposed a patch to fix all this, but it's not been accepted upstream yet...

<shameless plug> vote for http://issues.opennms.org/browse/NMS-4363 </shameless plug>.

If I can be of further assistenace, please post to this bug.

Now that I'm searching, I see more bugs opened against the JMX collector I was unaware of. I'll be taking a look at those as time permits.

Steve.

Marco Supino December 13, 2010 at 9:53 AM

is graphing supported on this ? i am getting errors of

not adding jvm.HeapMemoryUsage to prefab graph list because the required list of RRD attributes (Heap.used, Heap.max, Heap.committed) is not in the list of RRD attributes on the resource

for a jmx mbean with multiple attributes, the rrd files are created.

Former user February 25, 2010 at 5:36 PM

Commited to master 13e40ce107af18664dbf5496cdc16000e151f3a2

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

PagerDuty

Created February 28, 2006 at 11:46 AM
Updated January 27, 2017 at 4:31 PM
Resolved November 5, 2010 at 4:04 PM