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?
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 ie, who is referencing these objects and from that you can assess if this is a memory leak or just legitimate objects which are cached.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.