Visual vm分析内存泄漏

发布于 2024-09-26 10:58:39 字数 251 浏览 0 评论 0原文

在我的视觉虚拟机中,我单击“sample->内存”,我一直看到“windowprincipal”类,实例数保持在 25。即使如此,现在没有人使用该应用程序。这是内存泄漏的迹象吗?

http://www.freeimagehosting.net/image.php?c069df48c2.gif

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?c069df48c2.gif

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

倒带 2024-10-03 10:58:39

尝试多次请求垃圾收集,然后再次看到此图表。如果对象实例仍然存在,那么您可以跟踪这些对象的补丁,即谁正在引用这些对象,并从中您可以评估这是内存泄漏还是只是缓存的合法对象。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文