【问题标题】:Internal error occured in parsing hprof file in eclipse在 eclipse 中解析 hprof 文件时发生内部错误
【发布时间】:2016-03-22 08:16:09
【问题描述】:

使用 MemoryAnalyzer(eclipse 插件)检查内存。 我可以生成 hprof 文件,但无法在 eclipse 中打开。 出现以下内部错误。

【问题讨论】:

  • 您在分析内存问题时似乎遇到了内存问题...您可能想为 Eclipse 增加内存:wiki.eclipse.org/…

标签: java eclipse eclipse-plugin eclipse-memory-analyzer


【解决方案1】:

打开hprof文件时,内存分析器本身内存不足。

来自FAQ:

嗯,分析大堆转储也可能需要更多堆空间。给 它需要更多内存(可以在 64 位机器上运行):

MemoryAnalyzer.exe -vmargs -Xmx4g -XX:-UseGCOverheadLimit

或者,编辑 MemoryAnalyzer.ini 以包含:

-vmargs
-Xmx2g
-XX:-UseGCOverheadLimit

...

如果您在 Eclipse SDK 中运行内存分析器,您 需要编辑eclipse.ini文件。

【讨论】:

  • 我在 Eclipse SDK 中运行内存分析器。在 eclipse.ini 中添加什么。我有以下设置,-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 512M -showsplash org.eclipse.platform --launcher.defaultAction openFile --launcher.appendVmargs -vmargs -Dosgi.requiredJavaVersion= 1.7 -Xms40m -Xmx512m
猜你喜欢
  • 2018-02-12
  • 1970-01-01
  • 1970-01-01
  • 2018-02-16
  • 2013-09-20
  • 1970-01-01
  • 1970-01-01
  • 2018-09-28
  • 2013-09-11
相关资源
最近更新 更多