Vitor Hugo
Vitor Hugo

Reputation: 1126

eclipse.ini non-standard options

Im having out of memory errors and generally a very slow eclipse running with window builder and dealing with some big visual classes, so after some research I realized that increasing the heap java size would solve the problem... and it did...

(on eclipse.ini)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Dhelp.lucene.tokenizer=standard
-Xms120m
-Xmx512m
-XX:MaxPermSize=1024m

now I dont see why getting more heap size would hurt me, so everytime I try to put on

-Xmx1024m

It gives me the 'Failed to Create the Java Virtual Machine'

Why cant I do it and would it help me with the slow processing and rendering of visual classes?

Upvotes: 1

Views: 859

Answers (2)

Aman
Aman

Reputation: 51

Check out this related post that gives a lot of solutions for solving your 'Failed to Create the Java Virtual Machine' problem: Eclipse Error: Failed To Create the Java Virtual Machine

Upvotes: 0

Nihathrael
Nihathrael

Reputation: 515

Check out this related post that gives a lot of solutions for solving your 'Failed to Create the Java Virtual Machine' problem: Eclipse error: 'Failed to create the Java Virtual Machine'

Besides increasing your heap, most of the time, it also helps to increase your PermGen space by using the -XX:MaxPermSize paramater. Setting this to 128m or even 256m might speed things up for you.

Upvotes: 1

Related Questions