Search code examples
javaminecraftpermgen

How do I increase the max PermGen size for Java from my VPS Terminal?


I am trying to run a Minecraft server from a VPS hosted somewhere I don't have physical access to. I have tried searching for answers for hours on end and haven't found one that explains things in a way I can understand. All I have is remote terminal access and I need to increase my permgen size so that I can launch the FTB Crackpack server I am trying to run from it. Can anyone help me?


Solution

  • Use the -XX:PermSize=size and -XX:MaxPermSize=size where size is the size of the permgen you want to use, 512m (512 megabytes) is probably sufficient.