Hello, I'm trying to allocate more RAM than just half a GB to Minecraft. Whenever I go to the Minecraft Launcher and then "Edit Profile" and then "Java Settings" and "JVM Arguments" I set it to "-Xmx2G -xms2G" but I get the same "Could Not Create Java Virtual Machine" error every time I try running the game.
My computer has 16 GB of RAM total, and I want Minecraft to have more allocated to it, but whenever I try I get the same error. I have tried researching and combing through the forums for solutions but nothing seems to work. Does anyone have any advice?