So I decided to start playing Minecraft because I saw these mods around blah blah blah. And when I started my world everything was fine after 10 mins. it froze up, so I closed erase a mod that was useless and then come back, it didn't last 5 minutes then it froze again and I had to restart and so on the whole day, but now the thing is after 5 seconds and is getting me mad because I like those mods. I will really appreciate it, if any detail needed don't mind asking.
You may have -Xmx512M in the _JAVA_OPTIONS variable in your environment settings, To remedy this,
Uninstall Razer Synapse / Cortex if you have it
Press the Windows key and the Pause/Break key simultaneously
A window should popup, click on "Advanced system settings"
Click on "Environment Variables"
Delete the _JAVA_OPTIONS entry
Restart the computer.
If not, use -Xmx1G or -Xmx2G in your JVM arguments.
Rollback Post to RevisionRollBack
Say something silly, Laugh 'til it hurts, Take a risk, Sing out loud, Rock the boat, Shake things up, Flirt with disaster, Buy something frivolous, Color outside the lines, Cause a scene, Order dessert, Make waves, Get carried away, Have a great day!
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release