Error :
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Answer :
Cause of the error is : Heap size is larger than your computer's physical memory.
try with the below heap sizes
set DEFAULT_MEM_ARGS=-Xms1024m -Xmx1024m
set PORT_MEM_ARGS=-Xms768m -Xmx1536m
if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=256m
set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
see the below link also :
http://javahowto.blogspot.com/2006/06/6-common-errors-in-setting-java-heap.html
No comments:
Post a Comment