Eclipse MAT tool thread display

546 views Asked by At

As a beginner of MAT tool, I am using it to analyze some issue. But I have no idea what it means for those threads under a class instance. Just as the picture shows (under the leak suspects tab).

enter image description here

Does it mean, those threads are waiting for the resource (the class instance)?

1

There are 1 answers

0
Tagir Valeev On

No these threads are not waiting, they can run normally. This means that the object of given ***Service class is stored in the local variable in some stack frame of given thread which was running when you created the memory dump. The purpose of this view is to show you not only the biggest objects, but the reasons why they cannot be garbage collected. Here the reason is that it's stored in local variable.