I start working with Alfresco system. My PC is 32-bit. I have a problem:
[exec] T E S T S
[exec] Error occurred during initialization of VM
[exec] Could not reserve enough space for object heap
[exec] Error: Could not create the Java Virtual Machine.
[exec] Error: A fatal exception has occurred. Program will exit.
[exec] Results :
[exec] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[exec] [INFO] Total time: 8.556 s
[exec] [INFO] Finished at: 2015-07-06T12:12:51+02:00
[exec] [INFO] Final Memory: 27M/64M
[exec] [INFO] ------------------------------------------------------------------------
[exec] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project spring-surf-core: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[exec] [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk1.7.0_79\jre\bin\java" -Xmx2G -XX:MaxPermSize=256m -Duser.language=en -Dcom.sun.management.jmxremote -jar C:\alfr\alfresco\projects\surf\spring-surf-core\spring-surf-core\target\surefire\surefirebooter1762228666106185177.jar C:\alfr\alfresco\projects\surf\spring-surf-core\spring-surf-core\target\surefire\surefire5748163713411457336tmp C:\alfr\alfresco\projects\surf\spring-surf-core\spring-surf-core\target\surefire\surefire_04790546620732481422tmp"
[exec] [ERROR] -> [Help 1]
[exec] [ERROR]
[exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[exec] [ERROR]
[exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[exec] [ERROR]
[exec] [ERROR] After correcting the problems, you can resume the build with the command
[exec] [ERROR] mvn <goals> -rf :spring-surf-core
BUILD FAILED
C:\alfr\alfresco\build.xml:46: exec returned: 1
I was trying every heap size in eclipse.ini
, but it's still the same. I have 4GB RAM.
How am I supposed to set Xmx
and Xms
?