Tomcat Configuration 查看一下可以配置的参数
设置JVM的参数Setting JVM Options for Tomcat
Edit the /usr/locat/apache-tomcat/bin/catalina.sh file and add the JVM options to the JAVA_OPTS environment variable.JVM Option Value Description
-Xmx 4g The maximum Java heap size.
-Xms 4g The initial Java heap size.
-Xmn 1g The size of young generation.
-XX:+UseParallelGC – To use parallel garbage collection for scavenges.
-XX:PermSize 50m The initial size of permanent generation.
注释:上面两个4g的值,我没试过,我用8GB内存windows的机器1.5GB能启动,超过…
Developer Advocate, DevOps China Community Organizer