Memory settings
Revision as of 12:32, 1 March 2013 by old>Admin (→Tomcat6)
The following sample sets
- PermGen space is set to 256 MB
- Minimum application memory is 512 MB
- Maximum application memory is 1 GB
-Xmx512m -Xms1024m -XX:MaxPermSize=256m
Max total memory in this setup is 1256 MB
Setting values in Tomcat / Windows
Tomcat6
The service can be changed by
- Open prompt as Administrator
- Run the following commands
cd "C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin Tomcat6w.exe //ES//tomcat6
- Klik "Java" page
- Set the values
- Initial memory pool (aka "Xms"): 256m
- Maximum memory pool (aka "Xmx"): 1024m
- Add an extra line to Java Options
Tomcat7
Follow the steps in this guide
http://plavc.wordpress.com/2012/02/08/tomcat-service-on-windows/
Set the values
- Initial memory pool (aka "Xms"): 256m
- Maximum memory pool (aka "Xmx"): 1024m
- Add an extra line to Java Options
-XX:MaxPermSize=128m
Setting values in Tomcat / Linux
Find catalina.sh in something like: /usr/share/tomcat6/bin
Assign following line to JAVA_OPTS variable and add it into catalina.sh file.
JAVA_OPTS="-Djava.awt.headless=true -server -Xmx512m -Xms1024m -XX:MaxPermSize=256m"