以编程方式分析java堆转储文件 [英] Programmatically analyze java heap dump file

查看:191
本文介绍了以编程方式分析java堆转储文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个程序(最好是在java中)来解析和分析java堆转储文件(由jmap创建)。我知道有很多很棒的工具已经这样做了(jhat,eclipse的MAT等等),但是我想从特定的角度分析堆到我的应用程序。

I want to write a program (preferably in java) that will parse and analyze a java heap dump file (created by jmap). I know there are many great tools that already do so (jhat, eclipse's MAT, and so on), but I want to analyze the heap from a specific perspective to my application.

我在哪里可以读到堆转储文件的结构,如何读取它的示例等等?没有找到任何有用的搜索...

Where can I read about the structure of the heap dump file, examples how to read it, and so on? Didn't find anything useful searching for it...

非常感谢。

推荐答案

我不熟悉jhat,但Eclipse的MAT是开源的。他们的 SVN链接可用,也许您可​​以查看它们的内容解析器,甚至可以使用它。

I'm not familiar with jhat, but Eclipse's MAT is open source. Their SVN link is available, perhaps you could look through that for their parser, perhaps even use it.

这篇关于以编程方式分析java堆转储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆