192k views
5 votes
How to fix error occurred during initialization of vm could not reserve enough space for object heap?

User TompaLompa
by
7.6k points

1 Answer

5 votes

Answer:

space for object heap?

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 HymnZzy
by
7.9k points