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.
我正在使用 VisualVM 和 JProfiler 来尝试找到内存泄漏的罪魁祸首。有一个拥有最多实例的 PoolThreadCache 类。 有没有办法查看对象使用的调用跟踪?像这样的东西: com.my.CustomClass ->abcAClass->defBClass-> ghiPoolThreadCache 我可以为此使用 OQL 还是一些传出/传入的参考功能? 基本上我想知道谁是 com.my.CustomClass 。
我假设通过
对象使用的调用跟踪
您的意思是分配对象的堆栈跟踪。
在 JProfiler 中,您必须开始分配记录,然后堆遍历器的“分配”视图将向您显示累积的调用树或带有回溯的热点列表,其中分配了当前对象中的对象。