This page applies to an earlier version of the AppDynamics App IQ Platform.
For documentation on the latest version, see the 4.4 Documentation.


On this page:

Your Rating:
Results:
PatheticBadOKGoodOutstanding!
37 rates

The Node.js Agent provides object instance tracking (OIT) for monitoring memory usage.

When you enable object instance tracking for a node, the Node.js Agent attempts to identify the object types with the most instances on the heap. The agent tracks the top 20 object types based upon the number of instances. Use object instance tracking to identify memory usage trends in objects with large numbers of instances.

Enable object instance tracking on a node

  1. In the left navigation pane, click App Servers.
  2. In the App Servers window navigate to and select the node that you want to track.
  3. Double click or click View Dashboard.
  4. In the node dashboard, click the Memory tab.
  5. Click the Object Instance Tracking subtab.
  6. Click On to start tracking.
    After completing the heap analysis, the agent begins tracking the top 20 object types in the heap.

  7. When you are finished tracking, click Off because tracking for a long time can slow down the Node.js process. OIT should be used only for brief periods.

Although the Node.js OIT UI displays "Class" and "Classes" throughout, the Node.js agent tracks object types, not classes. Substitute "object" for "class" wherever you see "class" for this feature.

Identify memory usage problems

Use the following guidelines to identify memory usage problems:

  • The Node.js Agent attempts to report once per minute, but on a heavily loaded, memory-saturated application it could be less often.
  • It is normal for the controller to display 0 for the Current Instance Count and Shallow Size between instance count collection times.
  • Hover over a peak in the graph to display information about the instance count.
  • Look for trends where the peaks increase in size from left to right. These may indicate a memory leak.

Track object instances for custom object types

If you want to track an object that doesn't appear in the top 20 on the Object Instance Tracking tab, you can configure a specific object to track.

  1. In the Object Instance Tracking tab, click Configure Custom Classes to Track.
  2. In the Define Custom Classes to Track window, click Add.
    The Create New Instance Tracker window opens.
  3. Leave Enabled checked.
  4. Enter the object for the instance to track.
  5. Click Save.
    The configured object is added to the objects to track when OIT is on.

Examine OIT Metrics in the Metric Browser

When enabled, OIT metrics are also reported under the Application Infrastructure Performance > <tier> Individual Nodes > <node> Object Instance Tracking branch in the Metric Browser.