HPROF解析器遇到违反HPROF规范的情况

时间:2016-06-30 06:34:00

标签: mat

当我尝试在MAT中打开一个有效的heapdump时,我得到了这个错误。如何解决这个问题。

错误文字:

The HPROF parser encountered a violation of the HPROF specification that it could not safely handle. This could be due to file truncation or a bug in the JVM. 
Please consider filing a bug at eclipse.org. To continue parsing the dump anyway, you can use -DhprofStrictnessWarning=true or set the strictness mode under Preferences > HPROF Parser > Parser Strictness. See the inner exception for details.
The HPROF parser encountered a violation of the HPROF specification that it could not safely handle. This could be due to file truncation or a bug in the JVM. P
lease consider filing a bug at eclipse.org. To continue parsing the dump anyway, you can use -DhprofStrictnessWarning=true or set the strictness mode under Preferences > HPROF Parser > Parser Strictness. See the inner exception for details.
(Possibly) Invalid HPROF file: Expected to read another 707,569,392 bytes, but only 69,932,894 bytes are available.
(Possibly) Invalid HPROF file: Expected to read another 707,569,392 bytes, but only 69,932,894 bytes are available.

1 个答案:

答案 0 :(得分:0)

将“首选项”>“内存分析器”>“ HPROF解析器”>“解析器的严格性”从“严格”更改为“警告”