开发者

visual vm analyze memory leak

开发者 https://www.devze.com 2023-01-19 00:18 出处:网络
in my visual vm, i click on sample->memory, and i keep see \"windowprincipal\" class, instances stay at 25. even that right now nobody using the application. is this sign of memory leak?

in my visual vm, i click on sample->memory, and i keep see "windowprincipal" class, instances stay at 25. even that right now nobody using the application. is this sign of memory leak?

http://www.freeimagehosting.net/image.php?c069df开发者_运维百科48c2.gif


Trying requesting a Garbage Collection multiple times and then see this graph again. If the object instances are still there than you can trace the patch of these objects i.e., who is referencing these objects and from that you can assess if this is a memory leak or just legitimate objects which are cached.

0

精彩评论

暂无评论...
验证码 换一张
取 消