./ParseHeapDump.sh test.hprof
Task: Parsing test.hprof
[Task: Parsing test.hprof
[
Subtask: Scanning test.hprof
[...........]
!SESSION 2021-11-25 14:25:21.690 -----------------------------------------------
eclipse.buildId=unknown
java.version=11.0.12
java.vendor=Red Hat, Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application org.eclipse.mat.api.parse test.hprof
Command-line arguments: -os linux -ws gtk -arch x86_64 -consolelog -application org.eclipse.mat.api.parse test.hprof
!ENTRY org.eclipse.osgi 4 0 2021-11-25 14:31:53.418
!MESSAGE Application error
!STACK 1
java.lang.OutOfMemoryError: Requested length of new long[2,147,483,640] exceeds limit of 2,147,483,639.
Consider enabling object discard, see Window > Preferences > Memory Analyzer > Enable discard
at org.eclipse.mat.parser.index.IndexWriter$Identifier.add(IndexWriter.java:102)
at org.eclipse.mat.hprof.HprofParserHandlerImpl.reportInstance(HprofParserHandlerImpl.java:1032)
at org.eclipse.mat.hprof.HprofParserHandlerImpl.reportInstanceOfPrimitiveArray(HprofParserHandlerImpl.java:1069)
at org.eclipse.mat.hprof.Pass1Parser.readPrimitiveArrayDump(Pass1Parser.java:823)
at org.eclipse.mat.hprof.Pass1Parser.readDumpSegments(Pass1Parser.java:448)
at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:213)
at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:84)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:331)
at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:202)
at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:149)
at org.eclipse.mat.internal.apps.ParseSnapshotApp.parse(ParseSnapshotApp.java:140)
at org.eclipse.mat.internal.apps.ParseSnapshotApp.start(ParseSnapshotApp.java:112)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
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:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:654)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1462)
at org.eclipse.equinox.launcher.Main.main(Main.java:1435)
(process:11392): Gtk-WARNING **: 14:31:55.647: Locale not supported by C library.
Using the fallback 'C' locale.
MemoryAnalyzer: Cannot open display:
MemoryAnalyzer:
An error has occurred. See the log file