Skip to Content
avatar image
Former Member

Error when trying to analyze large heapdump

Hi,

Tried both the standalone Eclipse Memory Analyzer and also the batch file. The heapdump file is 4GB. From the batch file I get this

!SESSION 2008-09-10 12:57:15.546 -


eclipse.buildId=unknown

java.version=1.6.0_07

java.vendor=Sun Microsystems Inc.

BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB

Framework arguments: -application org.eclipse.mat.api.parse d:\Lipper\heapdump

Command-line arguments: -os win32 -ws win32 -arch x86 -consoleLog -application org.eclipse.mat.api.parse d:\Lipper\heapdump

!ENTRY org.eclipse.osgi 4 0 2008-09-10 12:57:16.218

!MESSAGE Application error

!STACK 1

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(Unknown Source)

at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.deleteIndexFiles(SnapshotFactoryImpl.java:234)

at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:99)

at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:87)

at org.eclipse.mat.internal.apps.ParseSnapshotApp.parse(ParseSnapshotApp.java:74)

at org.eclipse.mat.internal.apps.ParseSnapshotApp.start(ParseSnapshotApp.java:63)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)

at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

!ENTRY org.eclipse.osgi 2 0 2008-09-10 12:57:16.250

!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:

!SUBENTRY 1 org.eclipse.osgi 2 0 2008-09-10 12:57:16.250

!MESSAGE Bundle update@plugins/org.eclipse.mat.jdt_0.7.0.200809051739.jar was not resolved.

!SUBENTRY 2 org.eclipse.mat.jdt 2 0 2008-09-10 12:57:16.250

!MESSAGE Missing required bundle org.eclipse.jdt.core_0.0.0.

!SUBENTRY 2 org.eclipse.mat.jdt 2 0 2008-09-10 12:57:16.250

!MESSAGE Missing required bundle org.eclipse.jdt.ui_0.0.0.

!ENTRY org.eclipse.osgi 2 0 2008-09-10 12:57:16.250

!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:

!SUBENTRY 1 org.eclipse.osgi 2 0 2008-09-10 12:57:16.250

!MESSAGE Bundle update@plugins/org.eclipse.mat.jdt_0.7.0.200809051739.jar [65] was not resolved.

!SUBENTRY 2 org.eclipse.mat.jdt 2 0 2008-09-10 12:57:16.250

!MESSAGE Missing required bundle org.eclipse.jdt.ui_0.0.0.

!SUBENTRY 2 org.eclipse.mat.jdt 2 0 2008-09-10 12:57:16.265

!MESSAGE Missing required bundle org.eclipse.jdt.core_0.0.0.

Thx.

David

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Sep 10, 2008 at 01:00 PM

    Hi,

    please rename the file to something like heapdump.hprof. Then it should work.

    The problem: it looks like we do not expect the heap dump to have no extension. I have opened an Bugzilla Bug. If you want to track progress, feel free to add yourself to the CC list: https://bugs.eclipse.org/bugs/show_bug.cgi?id=246853

    Andreas.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 11, 2008 at 03:43 PM

    Thx.

    Add comment
    10|10000 characters needed characters exceeded