271 likes | 423 Views
Delve deep into heap dump analysis with Yannick Poireault, an Enterprise Support Engineer, as he explores the basics of heap dumps, different Out Of Memory errors, and various analysis tools and techniques. Discover how to acquire and analyze heap dumps effectively, identify memory leaks, track unreachable objects, and optimize memory usage in your applications. Gain valuable insights into histogram statistics, leak suspects, dominator trees, and general tips for efficient object inspection and query. Take your troubleshooting skills to the next level with this comprehensive guide.
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