How to solve Could not reserve enough space for object heap

Apparently, something was going wrong with the VM arguments I was providing, but to my surprise, it was nothing that I could ever imagine.

So, I setup a tomcat server in intellij and provided a few VM options in the Tomcat’s configuration part, in intellij. When everything was setup and I tried starting the server, I got the following error:

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

Many sources over the net, unfortunately misdirected me, cuz everything seemed to be configured properly.

In the end, I took a look again in the VM options I pasted to my intellij.

Oh, man I was defining a max memory option of 10g, whereas my machine only had 8g!

Lesson learned

Don’t blindly copy whatever you find on your way.

Closing Quote

Always filter what others feed you with.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s