Search This Blog

Monday 11 November 2013

Erros in building service - Error occurred during initialization of VM , Could not reserve enough space for object heap


#### ERROR --

[Console output redirected to file:D:\MTSTravel\.metadata\.plugins\com.liferay.ide.eclipse.sdk\sdk.log]
Buildfile: D:\xxxxxx\plugins-sdk-6.1.1\portlets\mts-portlet\build.xml
build-service:
     [java] Java Result: 1
     [echo] Error occurred during initialization of VM
     [echo] Could not reserve enough space for object heap
     [echo] Error: Could not create the Java Virtual Machine.
     [echo] Error: A fatal exception has occurred. Program will exit.

BUILD FAILED
D:\xxxxxx\plugins-sdk-6.1.1\build-common-plugin.xml:207: Service Builder generated exceptions.
Total time: 6 seconds




#### SOLUTION --

I faced this ExceptionThis is what resolved the issue for me , thus sharing hereby expecting it could be of some help to you as well...

SDK ,change the file build-common-plugin.xml from
<jvmarg value="-Xms512m" />
<jvmarg value="-Xmx1024m" />
to
<jvmarg value="-Xms128m" />
<jvmarg value="-Xmx512m" />

No comments:

Post a Comment