Difference between revisions of "Memory settings"
Jump to navigation
Jump to search
old>Admin |
old>Admin |
||
Line 12: | Line 12: | ||
== Setting values in | == Setting values in Tomcat / Linux == | ||
Find '''catalina.sh''' in something like: '''/usr/share/tomcat6/bin''' | Find '''catalina.sh''' in something like: '''/usr/share/tomcat6/bin''' | ||
Revision as of 12:02, 1 March 2013
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 Tomcat7 / Windows
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"