Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

Tuesday, September 16, 2014

Error occurred during initialization of VM Could not reserve enough space

I got this error when I was trying to build a Gradle project

!ENTRY org.springsource.ide.eclipse.gradle.core 4 0 2014-09-16 18:26:42.625
!MESSAGE Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.11/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0


Solution:

In Eclipse Change the Gradle's JVM setting in Window/Preferences/Gradle/Arguments... on JVM Arguments section select "Use:" and write something like: -Xms128m -Xmx256m.

Monday, December 9, 2013

Eclipse - Failed to create the java virtual machine

Running eclipse for the first time, I encountered the problem
"Failed to create the java virtual machine"
and the program didn't run.

There are two place in eclipse.ini that includes
--launcher.XXMaxPermSize
512m
make it
--launcher.XXMaxPermSize
256m

You may need to make the numbers smaller than 256 though, 128 or something and it should work