This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I am running the ANT script at Command prompt C:\Application>, which can build around 30 applications in single shot.
So, before running the script I have set the PremGen space as follows:
C:\Application>set JAVA_OPTS="-Xms128m -Xmx1024m -XX:MaxPermSize=1024m"
But, middle of ant build, it is giving us Out of Memory: PremGen space.
Could any body please help me to resolve this issue.
I have increased upto 256M and unable to increase more than that. it gives the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Could you please let me know, is there any way to clear VM space, while we are running continuous builds.
Please help us to resolve the above issue.
subject: ANT Script throws Out of Memory: PremGen space