tomcat&jvm配置

Tomcat

Tomcat的一些配置参数
1. JVM配置参数:
JAVA_OPTS="-server -verbose:gc -Xms6000m -Xmx6000m -Xmn2000m -XX:PermSize=128m -XX:MaxPermSize=128m -Xss256k -XX:NewSize=500m -XX:MaxNewSize=500m -XX:+UseConcMarkSweepGC -XX:ParallelGCThreads=16 -XX:+UseCMSCompactAtFullCollection -XX:CMSMaxAbortablePrecleanTime=5000 -XX:+UseParNewGC -XX:+DisableExplicitGC -Xloggc:${VERTICAL_SEARCH_LOG}/logs/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${VERTICAL_SEARCH_LOG}/logs/HeapDumpOnOutOfMemoryError.log -XX:+DisableExplicitGC -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -DVERTICAL_SEARCH_LOG=${VERTICAL_SEARCH_LOG}
2. Tomcat配置参数:
<Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"       connectionTimeout="20000" redirectPort="8443"maxThreads="1024"           minSpareThreads="256" acceptCount="2048"    enableLookups="false"  />

你可能感兴趣的:(jvm,tomcat)