Three (bio,nio.apr) Advanced Connector Operation modes of Tomcat
There are three operation modes of tomcat. Modify their operating mode. The success of the three modes can be seen in his startup console or startup 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 and support.
2) nio
Using java's asynchronous io nursing technology, no blocking IO technology.
If you want to run in this mode, directly modify the Connector node in server.xml and change the protocol to
After starting, 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 apr is supported by direct startup. The following changes are superfluous, only for you to expand your knowledge, but you still need to install apr and native
For example, modify the mode of nio and change protocol to org.apache.coyote.http11.Http11AprProtocol.