Tomcat's operating mode

tomcat default has three operating modes, respectively,
(. 1) BIO (blocking I / O) that is blocking I / O operations, represented using a conventional Tomcat Java I / O operations (i.e. java.io package and its subpackages). A thread processing a request, Disadvantages: high concurrency, large number of threads, a waste of resources.
Use: now is not normally used
(2) the NIO (new new I / O)
the Java nio is based on a buffer, and can provide non-blocking I / O operations of the Java API, nio therefore also be regarded as non-blocking I / O abbreviation. It has a better performance than conventional concurrently running I / O operations (bio). Using Java IO asynchronous request processing, it can handle a large number of requests by a small number of threads.
Use: tomcat default mode
(. 3) the AIO / the APR (when Apache Portable Runtime / Apache Portable Runtime)
Tomcat JNI calls will form the core of the dynamic link library to process the Apache HTTP Server or a network file read transfer operation, thereby greatly improving static files Tomcat processing performance. Tomcat apr also the preferred mode for highly concurrent applications running on Tomcat.
 

Guess you like

Origin www.cnblogs.com/990114-jhc/p/11626970.html