Search code examples
javamemory-leaksjprofiler

Identify Memory Leak from Heapdump - Cannot View Allocations from Heapdump in JProfiler


I have been trying to identify the cause of a Memory Leak in my production application (It is throwing OutOfMemoryError and generating a Heapdump), I have identified some Objects which could be the cause (big objects which are referenced && not used), however, when I try to view where are these offending objects being allocated I am getting following message: "This view is not available when viewing HPROF snapshots" so my question is if Allocation View is only available for live profiling, any help would be appreciated. Thanks.


Solution

  • HPROF snapshots do not contain any information where objects were allocated. You have to use the JProfiler profiling agent and record allocation data before taking a heap snapshot in order to use this functionality.