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

User Slack Flag
by
8.0k points

1 Answer

3 votes

Answer:

To fix the could not reserve enough space for 2097152KB object heap error message, just change the -Xmx setting to something more conservative such as 512m or 1024m.

User Bryan Corazza
by
7.6k points