Java Memory Leak Investigation Using Heap Dumps and Eclipse MAT
A rising old-generation trend does not automatically indicate a memory leak, since an undersized heap, growing traffic, or pending collections can produce similar symptoms. This tutorial walks through diagnosing a notification service whose heap grows until it throws OutOfMemoryError, targeting JDK 21 and later. The process starts by confirming the leak through GC logs, where a post-collection floor that keeps climbing under steady load signals retention. A live heap dump is then captured with jcmd and analyzed in Eclipse Memory Analyzer to locate the retaining reference. The author concludes by fixing the reference and verifying that the post-collection floor stays flat.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.



Discussion (0)
Log in to join the discussion and vote.
Log in