What's the ideal Java permgen size?

673    Asked by RajuSinha in Java , Asked on Oct 13, 2022

 I have a FTB Unleashed 1.1.7 server running and I have been getting the following error as of lately "java.lang.OutOfMemoryError: PermGen space".

According to this thread: Dealing with “java.lang.OutOfMemoryError: PermGen space” error , the recommended flags are

-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled along with setting the MaxPermSize -XX:MaxPermSize=128M.

What is the ideal MaxPermSize? Will increasing the MaxPermSize (256mb, 512mb) degrade performance?

Answered by rakesh Jha

If you are running the server off of a house computer, or a host server that uses individual PCs, increasing the Permgen Size will do quite the opposite of degrading performance, it will increase the performance of the server from not too much improvement to a drastic improvement, based on what the PC is build with. The only performance that might degrade is your personal client, if you are running the server off the same computer.





Your Answer

Interviews

Parent Categories