tomcat6 - Tomcat memory settings -


i getting out of memory exception in tomcat,could 1 explain how settings , best values have set based on calculation of total memory.thanks in advance.

regards, chaitu

tomcat uses java startup flags set memory configuration. you'll want set java_opts environment variable include -xmx512m ( or heap space think you'll need ).

export java_opts="-xmx512m" 

if permgen memory exceptions may need set maxpermsize:

export java_opts="-xmx512m -xx:maxpermsize=128m" 

the normal catalina startup scripts incorporate java_opts environment variable normal startup process.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -