Minecraft crashes at anything over 1gb of ram?

I've been trying to play minecraft, but any time i try to play with more than 1gb of ram i get: "Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap". Any way to fix this?

I think you can increase the RAM.

Play with 1G of RAM. That is more than enough. The reason to allocate more RAM into your Minecraft game is to decrease the amount of lag spikes. If your game is slow I suggest to go to your task manager, find Minecraft, right click, go under set priority and set it to high. Not realtime. Also close other tabs.