Troubleshoot Memory Leaks
After detecting a potential memory leak, troubleshooting the leak involves performing these three actions:
Select the Collection Object to Monitor
On the Automatic Leak Detection dashboard, right-click the class name and click Drill Down.
For performance reasons, start the troubleshooting session on a single collection object at a time.
Use Content Inspection
Content Inspection identifies which part of the application the collection belongs to so that you can start troubleshooting. It allows monitoring histograms of all the elements in a particular collection.
Enable Automatic Leak Detection by starting an On Demand Capture Session, select the object you want to troubleshoot, and then follow the steps listed below:
- Click the Content Inspection tab.
- Click Start Content Summary Capture Session to start the content inspection session.
- Enter the session duration. Allow at least 1 – 2 minutes for data generation.
- Click Refresh to retrieve the session data.
- Click on the snapshot to view details about an individual session.
Use Access Tracking to view the actual code paths and business transactions accessing the collections object.
As described above in Workflow to Troubleshoot Memory Leaks, enable Automatic Leak Detection, start an On Demand Capture Session, select the object you want to troubleshoot, and then follow the steps listed below:
- Select the Access Tracking tab
- Click Start Access Tracking Session to start the tracking session.
- Enter the session duration. Allow at least 1-2 minutes for data generation.
- Click Refresh to retrieve session data.
- Click the snapshot to view details about an individual session.