When using visualVM to detect a memory leak, it allows us to view the instance as described below:
The Instance view displays object instances for the selected class. When you select an instance from the Instance panel, VisualVM displays the fields of this class and references to this class in the respective panels. In the Links panel, you can right-click an item and select Show Nearest GC Root to display the nearest root garbage collection object.
Can someone tell me what is the nearest root garbage collection object and how to use this information to help identify leaks. Thanks!
source
share