简体   繁体   English

如何使用jhat分析堆转储

[英]How to analyze the heap dump using jhat

I ran the jhat on the heap dump, it has generated the reports. 我在堆转储上运行了jhat,它生成了报告。 How do i use the report to analyze the heap.I couldn't understand completely other than the instance count. 我如何使用报告来分析堆。除了实例计数之外,我无法完全理解。 Is there any references or case studies on that. 是否有任何参考或案例研究。 In short, i need to proceed furthur, How can i? 总之,我需要继续进行,我怎么样?

Also what is object query language. 什么是对象查询语言。

Have you read the documentation for JHAT ? 您是否阅读过JHAT文档 It details the various types of queries that can be performed using the heap analysis tool. 它详细介绍了可以使用堆分析工具执行的各种类型的查询。

最后解决了Eclipse Memory Analyzer,它几乎可以提供从转储中获得的所有内容

You can use the object query language which is a part of JHAT.See which object's are prominent in memory at the time of heap dump and look up in the code if you can reduce unwanted object creation. 您可以使用作为JHAT一部分的对象查询语言 。在堆转储时查看哪个对象在内存中很突出,如果可以减少不需要的对象创建,则在代码中查找。

Also have look at this blog on how to fix memory leaks. 另外看看这个博客如何修复内存泄漏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM