Following the tips, I just added the following line to the catalina.bat file in my tomcat 6.0.26 installation:
set JAVA_OPTS =% JAVA_OPTS% -Xms128m -Xmx512m -XX: MaxPermSize = 128m
I know the settings:
Xms128m -Xmx512m
Control the size of the initial heap and the value that it can go to. But what exactly:
-XX: MaxPermSize = 128m
Word from Tomcat:
Following tips found elsewhere on the Internet
Always take large chunks of salt.
set JAVA_OPTS =% JAVA_OPTS% -Xms128m -Xmx512m -XX: MaxPermSize = 128m
You would be better off using CATALINA_OPTS, since setting JAVA_OPTS makes no sense in shutting down the script, as well as in launching.
I know the settings: Xms128m -Xmx512m
Control the size of the initial heap and what it can expand.
In a server environment, you usually want Xms and Xmx to set the same value to avoid heap overkill. The exact size depends entirely on the needs of your website.
But what exactly: -XX: MaxPermSize = 128m
This is the volume of space to which the so-called permanent generation can expand. PermGen contains mainly instances of java.lang.Class, so it should be specified only if there are a large number of classes in your environment.
If it is installed in addition to other settings or another setting to add it?
What does this question mean? PermGen size is completely independent of heap size.
Make sure that the system has enough RAM to support Xmx + PermGen + a_lot_of_other_stuff. Monitor the system to make sure you donβt get paged.