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


i trying build alfresco source , following instructions this link. whenever try execute below command:

ant build-tomcat 

i getting below error:

[mkdir] created dir: e:\pradeep\alfresco\alfresco   source\root\projects\core\build\classes [javac] compiling 159 source files e:\pradeep\alfresco\alfresco   source\root\projects\core\build\classes [javac] error occurred during initialization of vm [javac] error: not create java virtual machine. [javac] error: fatal exception has occurred. program exit. [javac] not reserve enough space object heap 

i tried setting heap size using following environment variable:

java_opts = -xms256m -xmx512m 

i played various values 1333m, 1024m, 64m etc. still same error. alternative tried execute using maven mvn clean install, won't run, following error:

[error] failed execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project alfresco-core: execution default-test of goal org.apache.ma erminated without saying goodbye. vm crash or system.exit called ?

edit: maven surefire plugin, memory configuration have:

-xmx2g -xx:maxpermsize=256m -duser.language=en -dcom.sun.management.jmxremote

my system configuration is: windows 7 32 bit, dual core, 4gb ram.

can kindly me how resolve error?

try increasing heap size maven build by

export maven_opts="-xmx1500m" 

Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -