Custom Memory Structures for Java

This page describes how to monitor custom memory structures for Java.

Splunk AppDynamics automatically tracks long-lived Java collections (HashMap, ArrayList, and so on) with Automatic Leak Detection. To track specific classes, you can use the Custom Memory Structures capability in the Controller UI.

You can use this capability to monitor a custom cache or other structure that is not a Java collection. For example, you may have a custom cache or a third-party cache such as Ehcache. In a distributed environment, caching can easily become a prime source of memory leaks. In addition, custom memory structures may or may not contain collections of objects that would be tracked using automatic leak detection.

Note: Monitoring custom memory structures with the Java Agent can result in increased CPU utilization. Splunk AppDynamics recommends you enable memory structure monitoring on a short-term basis only while troubleshooting or in pre-production environments.
To configure custom memory structures, ensure custom memory structures are supported in your JVM environment. See JVM Support.
Attention:
  • To activate or deactivate object instance tracking, you need the Configure Agent Properties permission.
  • To configure the custom classes to track, you need the Configure Memory Monitoring permission. See Manage Custom Roles for Cisco AppDynamics.