How do you test memory leaks in web application?
Answer
How to Diagnose Memory Leaks
Answer
How to Diagnose Memory Leaks
- Step 1: Capture Baseline Heap Dump. You need to capture heap dump when it’s in the healthy state. Start your application. …
- Step 2: Capture Troubled Heap Dump. After doing step #1, let the application run. …
- Step 3: Compare Heap Dumps. Objects which are causing memory leaks grow over the period.