Синтаксический анализатор HPROF обнаружил нарушение спецификации HPROF, которое он не может безопасно обработать - PullRequest
0 голосов
/ 12 марта 2020

Я получаю файл HPROF, используя следующие параметры:

-XX: + HeapDumpOnOutOfMemoryError -XX: HeapDumpPath = / opt / quote / m.hprof

Но когда Я пытаюсь загрузить файл HPROF в Eclipse Memory Analyzer, были ошибки.

org.eclipse.mat.SnapshotException: 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.
        at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:141)
        at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:80)
        at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:222)
        at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:126)
        at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:147)
        at org.eclipse.mat.internal.apps.ParseSnapshotApp.parse(ParseSnapshotApp.java:136)
        at org.eclipse.mat.internal.apps.ParseSnapshotApp.start(ParseSnapshotApp.java:108)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:656)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:592)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1498)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1471)
Caused by: org.eclipse.mat.SnapshotException: (Possibly) Invalid HPROF file: Expected to read another 2,726,048,856 bytes, but only 419,430,160 bytes are available for heap dump record 0x21 at 0x2805a07e6.
        at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:142)
        ... 19 more

java .version = 1.8.0_172

ОС = Linux

Кто-нибудь знает, как решить эту проблему?

...