Troubleshooting Java Memory Leaks in Production
Troubleshooting Java Memory Leaks in Production

Troubleshooting Java Memory Leaks in Production

Author
Shiv Bade
Tags
java
memory leak
Published
February 4, 2016
Featured
Slug
Tweet
When your app starts eating up heap, it’s time to break out the diagnostics.
Steps: - Collect heap dumps with -XX:+HeapDumpOnOutOfMemoryError - Use Eclipse MAT to analyze retained sets - Identify leak suspects and dominator trees
In our case, an executor service wasn’t being shut down — held on to task references.
Memory leaks love long-lived services. Clean up after yourself.