Ein bisschen Suche nach passenden Tools für mein Memory Leak Problem brachte ein paar Interessante Seiten und Tools zum Vorschein.
“Your pager hasn’t been sleeping well. It periodically wakes you up in the middle of the night to tell you that your server is firing off “OutOfMemoryError” messages. Worse still, your significant other forcibly relocated you to the couch and told you not to return until your pager stops buzzing.
Sound familiar? If so, you may have a case of memory leak induced insomnia, but fortunately we’ve got a cure for what ails you. This tutorial will teach you everything you need to know to ease your suffering, including what memory leaks are, why they happen, and how to diagnose and fix ‘em.[...]“
Nützlich sind hierbei der gcviewer um das Java GC-Log zu visualisieren und der Memory Analyzer (MAT) um Java Heap Dumps zu analysieren.
Das GC-Log kann man mit folgenden Java-Parametern erstellen:
-verbose:gc
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-Xloggc:<logfile>
Alles weitere, und wie man Heap-Dumps erzeugt, wird in obigem Artikel sehr anschaulich erklärt.



0 Responses to “Indiana Jones und die Suche nach dem verlorenen Speicher”