Spring3.0.5
build spring occurs probelm:
[junit] Error occurred during initialization of VM
[junit] Could not create the Java virtual machine.
[junit] Could not reserve enough space for object heap
sovle
After some more tries, I eventually see this “BUILD SUCCESSFUL” on my Windows XP machine.
Here is the setting I used (My machine has 2G memory with 1.5G available at run-time):
1. Environmental variable (set for PermSize):
ANT_OPTS=-XX:MaxPermSize=256m -Xmx512m
2. Changed 2 memory related lines from build.properties file to increase the memory heap for test vm:
javadoc.max.memory=128M
test.vm.args=-Xmx768M -XX:MaxPermSize=512M -XX:+HeapDumpOnOutOfMemoryError
Then after 45minutes of building and testing. I saw the following: