AnsweredAssumed Answered

Could not reserve enough space for object heap - Alfresco build from source

Question asked by pradeepsimha on Mar 25, 2014
Latest reply on May 7, 2014 by nancyaggarwal
I am trying to build Alfresco from source and I am following the instructions from link.But whenever I try to execute below command:

ant build-tomcat

I get the following error:

[mkdir] Created dir: E:\Pradeep\Alfresco\Alfresco Source\root\projects\core\build\classes
[javac] Compiling 159 source files to E:\Pradeep\Alfresco\Alfresco Source\root\projects\core\build\classes
[javac] Error occurred during initialization of VM
[javac] Error: Could not create the Java Virtual Machine.
[javac] Error: A fatal exception has occurred. Program will exit.
[javac] Could not reserve enough space for object heap

I tried setting heap size using following environment variable:

 JAVA_OPTS = -Xms256m -Xmx512m 

I played with various values like 1333M, 1024M, 64M etc. But still I get same error. Even I tried to play around with the values in \root\modules\wcmquickstart\ mem.size.max value, but still issue persists.

Can anyone kindly help me in this, since I am beginner to Alfresco? Admittedly I have posted question in Stackoverflow, but I have not got response, so I am posting in official forum.