I am trying to analyze a heap of ~ 800 mb heap, which requires a larger heap than the standard for my eclipse. however, when I go to the eclipse.ini file and install -Xmx2g(or -Xmx2048m), I get the error message “Could not create Java virtual machine”.
1) yes, I have enough memory. 2) I can change it to exactly -Xmx976m. 3) I tried the standalone MAT analyzer and works with -Xmx1024m, not byte anymore. 4) No, 1gb is not enough to parse this heap, I get OOM
This is an eclipse error:

This is MAT error:

(I believe that they are the same, it's just that you can see an example with MAT)
My current eclipse.ini (working):
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx384m
Does anyone understand this?
thank!
e.