Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的可视虚拟机中,我单击示例-> 内存,我一直看到“windowprincipal”类,实例保持在 25。即使现在没有人使用该应用程序。这是内存泄漏的迹象吗?
http://www.freeimagehosting.net/image.php?c069df48c2.gif
尝试多次请求垃圾收集,然后再次查看此图。如果对象实例仍然存在,那么您可以跟踪这些对象的补丁,即,谁在引用这些对象,并且您可以从中评估这是内存泄漏还是只是缓存的合法对象。