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

book

Article ID: 109859

calendar_today

Updated On:

Products

APP PERF MANAGEMENT CA Application Performance Management Agent (APM / Wily / Introscope) CUSTOMER EXPERIENCE MANAGER INTROSCOPE

Issue/Introduction

How to collect metrics for attribute "LastGcInfo" under JMX MBean java.lang:type=GarbageCollector

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

Resolution

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

Documentation for Java Agent Properties:
https://docops.ca.com/ca-apm/10-7/en/implementing-agents/java-agent/java-agent-properties