How can CA APM collect the metrics for JMX MBean attribute LastGcInfo

Document ID : KB000109859
Last Modified Date : 08/08/2018
Show Technical Document Details
Introduction:
How to collect metrics for attribute "LastGcInfo" under JMX MBean java.lang:type=GarbageCollector
Background:
By default, after installing the APM Agent for Weblogic, JMX metrics for "LastGcInfo" are not visible.
Environment:
APM 10.x
Weblogic 10.x, 11.x, 12.x
Instructions:
LastGCInfo is CompositeData and the agent Composite Data property is disabled by default.
Enable the below property in IntroscopeAgent.profile, and restart the managed application to take effect:
introscope.agent.jmx.compositedata.enable=true

Then the JMX metrics for "LastGcInfo" attributes will be collected by the Agent and will be visible in CA APM UI under node:
JMX| java.lang|name=<GC_NAME>|type=GarbageCollector|LastGcInfo
i.e. 
-----------------------------
GcThreadCount 
duration 
endTime 
id 
startTime 
-------------------------------
Additional Information: