Menu

Error occurred during initialization of VM, could not reserve enough space for object heap

When we try to run any Java application that required more heap memory or we have explicitly set the heap memory -Xmx. e.g. to set heap memory to 512 MB of RAM(Random Access Memory) size use, -Xmx512M 

Solution:

There could be multiple ways to fix this issue.

1. Restart the Virtual Machine or system.

2. Set environment variable JAVA_OPTS=-Xms256M. To read more on the environment variable read here.

No comments:

Post a Comment