Jvm troubleshooting memory leaks two steps using jprofile tool

1. Real-time connection program analysis

(1) Overview of Telemetries to check the approximate memory situation

(2) All Objects in Live memory view the object with the largest Instance count and size, find the largest Show Selection In Heap Walker, and select the first current window

(3) Heap Walker Use Selected java.lang.Class objects in Classes--"New Object Set--"References, select Incoming References to expand, and you can see the class that references this object--"Right click Show Source to jump to the corresponding Code

 

 

2. Use file analysis after export

(1) Open the exported file heap.jps and other files with jprofile file,

(2) Start Center--"Open Snapshots--"Open a Single Snapshot--" automatically to the Classes of Heap Walker's Current Object Set

Find the class with the largest size--"Right click Use Selected java.lang.Class objects--"New Object Set--"References, select Incoming References to expand, and you will see the class that references this object--"Right click Show Source to jump to Corresponding code

 

Guess you like

Origin blog.csdn.net/Mint6/article/details/105019137