Tomcat Memory Setup Tutorial

  

On Linux: Add

export to /usr/tomcat/bin/catalina.sh JAVA_OPTS='-Xms256m -Xmx1024m -XX:MaxPermSize=256m'


Windows
: Set initial memory and maximum memory in catalina.bat: set CATALINA_OPTS="-Xms30m -Xmx512m" Check the Catalina.bat file at each " %_RUNJAVA%”There should be “%CATALINA_OPTS%” Some Catalina.bat files are followed by “%JAVA_OPTS%”, if so, should be set: set JAVA_OPTS= -Xms30m -Xmx512m or after each “%_RUNJAVA%” followed by “%CATALINA_OPTS%”

Copyright © Windows knowledge All Rights Reserved