Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NIO Connector in Tomcat

I'm trying to enable NIO Connector in Tomcat 6.0 by configuring server.xml file, but I'm getting Firefox can't establish a connection to the server at localhost:8081. in the browser whenever I type localhost:8081.

This is how I've configured NIO connector in Tomcat 6.0. May I know what's the problem?

<Connector connectionTimeout="20000" port="8081" protocol="org.apache.
coyote.http11.Http11NioProtocol" redirectPort="8443"/>
like image 854
Alvin Avatar asked Jun 08 '10 11:06

Alvin


People also ask

What are the connectors used in Tomcat?

There are two basic Connector types available in Tomcat - HTTP and AJP.

What is AJP connector Tomcat 9?

The AJP Connector element represents a Connector component that communicates with a web connector via the AJP protocol.

How many connections can Tomcat handle?

The default installation of Tomcat sets the maximum number of HTTP servicing threads at 200. Effectively, this means that the system can handle a maximum of 200 simultaneous HTTP requests.

What is the name of the connector component of Apache Tomcat?

The HTTP Connector element represents a Connector component that supports the HTTP/1.1 protocol. It enables Catalina to function as a stand-alone web server, in addition to its ability to execute servlets and JSP pages.


1 Answers

I've tried your tag on my server.

Your Connector tag has one unnecessary space between apache. and coyote Remove it or try with the one below.

<Connector connectionTimeout="20000" port="8081" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/>

It should start up.

like image 94
JoseK Avatar answered Oct 05 '22 21:10

JoseK