271 likes | 396 Views
Deep dive into Heap Dump analysis. Yannick Poireault | Enterprise Support Engineer. Agenda. Basics on Heap dump – The problem / the solution. KEY TAKEAWAY : Heap dumps are useful when troubleshooting Out Of Memory problems. Basics on Heap dump – Different Out Of Memory errors.
E N D
Deep dive into Heap Dump analysis Yannick Poireault | Enterprise Support Engineer
Basics on Heap dump – The problem / the solution KEY TAKEAWAY : Heap dumps are useful when troubleshooting Out Of Memory problems.
Analyzing a Heap Dump – Shallow Heap & Retained heap The retained heap can be calculated in two different ways
Analyzing a Heap Dump – Unreachable Objects Histogram An object is reachable if there exist a path of reference from the GC Roots by which the executing program can access it Unreachable objects are eligible for garbage collection and will be finalized before freeing the memory Finalization process is single threaded. Overriding the finalizer method in business objects is not recommended to avoid queuing Verify the number of objects in the histogramand how much memory they are consuming
Analyzing a Heap Dump – Histogram Statistical view of instances number and their retained memory Group by package to organize and inspect your business class Filter the view using a regexp pattern Inspect object attributes and drill-down into their references Compare to another heap dump to monitor the evolution