Sync sync disk
echo 3 > /proc/sys/vm/drop_caches # Clean up useless memory space
Tomcat8 final configuration 1.${tomcat}/bin/catalina.sh Join 1.${tomcat}/bin/catalina.sh JAVA_OPTS=”-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1G -Xmx1G -Xss256k -XX:NewSize=1G -XX:MaxNewSize=1G -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+DisableExplicitGC”
2. 2. JAVA_OPTS=”$JAVA_OPTS -server -Xms3G -Xmx3G -Xss256k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseParallelOldGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/aaa/dump -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/usr/tomcat/dump/heap_trace.txt -XX:NewSize=1G -XX:MaxNewSize=1G”
2.${tomcat}/conf/server.xml Open commented out
<Executor name=”tomcatThreadPool” namePrefix=”catalina-exec-” maxThreads=”300″ […]
Recent Comments