Eclipse memory allocation issue

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: alt text

This is MAT error: alt text

(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.

+3
4

jvm, , JVM, , , , . 4 , . , - : Xmx1380m, Xmx1024m.

:

$ java -jar -Xmx1500m "C:\fakeapp.jar"
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

, -Xmx1380g, .

unix, , , .

, : ctrl + shift + esc → → ; Xmx , "".

, - , JVM , . 1.5g, 800 , , ...

,

.

0

, , , ?

. , . . , . Eclipse MemoryAnalyzer ini - from the Xmx. ini

-vmargs
Xmx1536m

. Alex2308 http://troyworks.com/blog/2008/06/08/eclipse-jvm-terminated-exit-code-1/comment-page-1/#comment-80


Linux Live. Linux, 2g MAT . (, MAT Linux)

, MAT, .

+5

, 32- . Java , , DLL . 64- (, , 64- ) .

+2

Java Runtime Environment Java? Runtime e.g -Xmx3072m .

, .

JVM Windows 7

, .

+1

Source: https://habr.com/ru/post/1766005/


All Articles