Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Three (bio,nio.apr) Advanced Connector Operation modes of Tomcat

Shulou Source: shulou.com Published: 2022-06-01 07:30:02 10月01日 Update

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.

Tags: Mode operation performance technology support low difficulty success operating system large scale console log server status knowledge system level node problem faceted Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Huawei Shulou Information vpn Xiaomi