6.6.3.4 Configure Apache Tomcat Memory Settings To configure the Apache Tomcat Memory Settings, follow these steps: Locate the catalina.sh file that resides in the <CATALINA_HOME>/bin directory. Edit this file for customizing the memory settings and garbage collector settings depending on the available hardware configuration. Add the memory setting for Java Heap to -Xms512m -Xmx1024m. For example: if [ -z "$LOGGING_MANAGER" ]; then JAVA_OPTS="$JAVA_OPTS -Xms512m - Xmx1024m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" else JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx1024m $LOGGING_MANAGER" fi