Cat's Three (BIO,NIO.APR) advanced Connector operating modes
Open source China's IT company open source software Consolidation Program Introduction
There are 3 modes of operation for Tomcat. Modify their run mode. 3 modes of operation is successful, you can see his startup console, or start the log. or log in to their default page http://localhost:8080/to see the server status.
1) Bio
The default mode, performance is very low, without any optimization processing and support.
2) NiO
Using Java's asynchronous IO Care technology, no blocking IO technology.
Want to run in this mode, directly modify the connector node in the Server.xml, modify the protocol to
<connector port= "protocol=" Org.apache.coyote.http11.Http11NioProtocol "connectiontimeout=" 20000 " uriencoding= "UTF-8" usebodyencodingforuri= "true" enablelookups= "false" redirectport= "8443"/>
Once started, it can take effect.
3) Apr
Installation is the most difficult, but from the operating system level to solve the asynchronous IO problem, greatly improve performance.
Apr and native must be installed and the APR will be supported directly on the launch. The following modifications are superfluous, only to expand the knowledge, but you still need to install APR and native
such as NiO modify mode, modify protocol to Org.apache.coyote.http11.Http11AprProtocol
Tomcat's three (BIO,NIO.APR) advanced Connector operating modes