227k views
1 vote
How to fix error occurred during initialization of vm could not reserve enough space for object heap?

1 Answer

1 vote

Answer:

To fix the error "Could not reserve enough space for object heap", add the options "-Xmx<size>m" to set the maximum size for the object heap memory allocation. This must be set large enough to accommodate loading your application into memory, but smaller than your requested total memory allocation by 2GB.

Step-by-step explanation:

User Sweeney Todd
by
8.3k points