tomcat7.0 memory Configuration

Source: Internet
Author: User
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 "/>  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.