cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

Garbage Collection metrics are not reporting. What should I do?

Issue 

On some of your JVM environments, Garbage Collection (GC) metrics are not reporting out of the box.

 

Observations

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

 

Solution 1

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.

 

Solution 2

You can create custom JMX metrics as follows, although you may need to use the JMX browser to confirm the exact names.

 

Minor CollectionMinor Collection

Major CollectionMajor Collection

 

Version history
Last update:
‎10-22-2018 01:14 PM
Updated by:
Labels (1)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
0 Kudos
Comments

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