Http://wangxuliangboy.javaeye.com/blog/235081
How to configure Tomcat APR in window:
What is apr ,(Tomcat can useApache Portable RuntimeTo provide superior scalability, performance, and better integration with native server technologies.)
Install, configure, and use Windows
1. first go to the http://tomcat.heanet.ie/native/ to download the compiled tcnative-1.dll File
2. Put the tcnative-1.dll file under the bin directory of Tomcat
Start Tomcat. If you see the following information:
17:28:59 org. Apache. Coyote. http11.http11aprprotocol start
Information: Starting coyote HTTP/1.1 on http-8080
17:28:59 org. Apache. Coyote. AJP. ajpaprprotocol start]
Then you can use the AB command of Apache to test the effect.
AB-N 1000-C 300 http: // localhost: 8080/turbine/index. jsp
For APR parameter configurations, refer to the following documents:
Http://tomcat.apache.org/tomcat-5.5-doc/apr.html
How to view the concurrent access volume of Tomcat:
Go to the Tomcat Service Management page (http: // localhost: 8080/manager/status) and you can see the following text
Http-8080
Max threads: 1000 min spare threads: 0 Max spare threads: 0 current thread count: 303 current thread busy: 234 keeped alive sockets count: 0
Max Processing Time: 23531 MS Processing Time: 29287.717 s request count: 2980 error count: 0 bytes encoded ed: 0.00 MB Bytes Sent: 12.61 MB
Current thread count: 303 this parameter indicates the concurrent access volume of current Tomcat
This is my tomcat server configuration:
<Connector Port = "8080" maxhttpheadersize = "8192" pollersize = "10025"
Maxthreads = "1000" minsparethreads = "25" maxsparethreads = "75"
Enablelookups = "false" redirectport = "8443" acceptcount = "100"
Compression = "on" compressionminsize = "2048"
Compressablemimetype = "text/html, text/XML, text/JavaScript, text/CSS, text/plain"
Connectiontimeout = "20000" disableuploadtimeout = "true" sendfilesize = "2048"/>
Change Tomcat logs to log4j log output
Copy the two jars of the commons-logging.jar and log4j-1.2.13.jar to the tomcat_home/common/lib.
copy log4j. properties to atat_home/common/classes.