Tomcat's three (BIO,NIO.APR) advanced Connector operating modes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.