1. Increase in the first line of Catalina.bat or catalina.sh:
set JAVA_OPTS=-XMS1024M-XMX1024M-XSS1024K-XX:PERMSIZE=64M-XX: maxpermsize=128m
parameter detailed
-xms JVM initialization heap memory size
-xmx JVM heap Maximum memory
-XSS thread stack size
-xx:permsize JVM Non-heap area initial memory allocation size
-xx:maxpermsize JVM heap area maximum memory
<connector port= "8080"
protocol= " Org.apache.coyote.http11.Http11AprProtocol "
connectiontimeout=" 20000 "//Link timeout length
redirectport=" 8443 "
maxthreads= "500"//sets the maximum number of threads to process a client request, determining the number of concurrent requests that the server can respond to, the default
minsparethreads= "20"//initialization number of threads, the minimum number of idle threads, The default is
acceptcount= "1000"///when all available processing requests are used, the number of requests can be placed in the processing queue, and requests exceeding this number will not be processed and the default of
enablelookups= " False "
uriencoding=" UTF-8 "/>