Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 08-20-2018 05:31 PM - edited on 10-22-2018 01:14 PM by Nina.Wolinsky
On some of your JVM environments, Garbage Collection (GC) metrics are not reporting out of the box.
The agent collects and reports the GC metrics based on the related MBeans exposed by the underlying JVM. If the JVM does not return the related Mbeans, then GC metrics will not be reported by the agent.
In this case, the agent logs will report the messages below:
[Thread-0] 06 Feb 2018 07:06:23,529 WARN MemoryMetricGenerator - Current JVM GC MX Beans - GPGC New, GPGC Old, not registered with JMX Service.Please add the appropriate minor collection bean name to JMX Service property key name : jmx-gc-minorCollectionBean [Thread-0] 06 Feb 2018 07:06:23,529 WARN MemoryMetricGenerator - Current JVM GC MX Beans - GPGC New, GPGC Old, not registered with JMX Service.Please add the appropriate major collection bean name to JMX Service property key name : jmx-gc-minorCollectionBean
You will need to analyze the GC mechanisms used by the JVM by verifying with JConsole or any other JMX tool. Refer to the attached screenshots for an example.
Identify the GC mechanism and configure it in the "app-agent-config.xml
" file under "JMXService" configurations.
Example:
<agent-service name="JMXService" enabled="true"> <configuration-properties> <property name="jmx-gc-minorCollectionBean" value="PS MarkSweep"/> <property name="jmx-gc-majorCollectionBean" value="PS MarkSweep"/> <property name="jmx-server-metrics-update-interval-in-seconds" value="60"/> </configuration-properties>
Restart the JVM for the changes to take effect.
You can create custom JMX metrics as follows, although you may need to use the JMX browser to confirm the exact names.
Is it possible to edit these settings in the node properties instead of the app config file?
Hi Jack,
Thanks for the update.
Yes , you can use below node properties for the same.
jmx-gc-minorCollectionBean
jmx-gc-majorCollectionBean
Thanks
Naren
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form