简体   繁体   English

如何从Java堆转储生成图形图像

[英]How to generate a graph image from java heap dump

I wanna analyze a complex data structure that is raising an OutOfMemory error in a java environment. 我想分析一个复杂的数据结构,该结构在Java环境中引发OutOfMemory错误。 I already used the MemoryAnalyzer application ( http://www.eclipse.org/mat/ ) but since the data structure is complex, it's hard to understand the dominatior tree. 我已经使用了MemoryAnalyzer应用程序( http://www.eclipse.org/mat/ ),但是由于数据结构很复杂,因此很难理解主控树。

I believe that if I create a visual representation of the heap as a graph (with nodes and vertices) it will be easier to analyze. 我相信,如果我创建一个直观的堆图表示形式(带有节点和顶点),则将更易于分析。 Does anyone know any tool to generate a graph image from a java heap dump (hprof file)? 有谁知道有什么工具可以从Java堆转储(hprof文件)生成图形图像?

thanks in advance. 提前致谢。

看一下: http : //dr-brenschede.de/bheapsampler/这会使用graphviz生成图形。

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

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