开发者

visual vm analyze 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜