...
Tomcat is especially memory hungry, and will benefit from being given lots of RAM. To set the amount of memory available to Tomcat, use either the JAVA_OPTS
or CATALINA_OPTS
environment variable, e.g:
Code Block |
---|
JAVACATALINA_OPTS=-Xmx512m -Xms512m |
OR
Code Block |
---|
CATALINAJAVA_OPTS=-Xmx512m -Xms512m |
The above example sets the maximum Java Heap memory to 512MB.
Info | ||
---|---|---|
| ||
You can use either environment variable. |
...
To increase the amount of PermGen memory available to Tomcat (default=64MB), use either the JAVA_OPTS
or CATALINA_OPTS
environment variable, e.g:
Code Block |
---|
JAVACATALINA_OPTS=-XX:MaxPermSize=128m |
OR
Code Block |
---|
CATALINAJAVA_OPTS=-XX:MaxPermSize=128m |
...