Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report