Return-Path:
The native connectors supported with this Tomcat release are:
-
org.apache.coyote.ajp.AjpProtocol
- blocking Java connector
+ org.apache.coyote.ajp.AjpNioProtocol
+ - non blocking Java connector.
org.apache.coyote.ajp.AjpAprProtocol
- the APR/native connector.
- Custom implementations may also be used.
+ WARNING: The NIO connector for AJP + is experimentaland not yet fully functional. +
To use AJP, you must specify the protocol attribute (see above).
-These implementations support the AJP 1.3 protocol.
- -They support the following additional attributes (in addition to the - common attributes listed above):
- -The BIO and APR/native implementations (there is no NIO implementation for - APR) both support the following additional attributes in addition to the - standard Connector attributes listed above:
+The standard AJP connectors (BIO, NIO and APR/native) all support the + following attributes in addition to the common Connector attributes listed + above.
+ +WARNING: The NIO connector for AJP + is experimentaland not yet fully functional.
acceptCount
setting. Default value
varies by connector type. For BIO the default is the value of
- maxThreads.For APR/native, the default is
+ maxThreads. For APR/native, the default is
8192
.
Note that for APR/native on Windows, the configured value will be
reduced to the highest multiple of 1024 that is less than or equal to
@@ -392,20 +401,13 @@
- The BIO implementation supports the following attributes in addition to
- the common Connector and AJP attributes listed above. The BIO and NIO implementation support the following Java TCP socket
+ attributes in addition to the common Connector and HTTP attributes listed
+ above. The maximum number of connections that the server will accept and
- process at any given time. When this number has been reached, the server
- will not accept any more connections until the number of connections
- falls below this value. The operating system may still accept
- connections based on the (int)The socket receive buffer (SO_RCVBUF) size in bytes. JVM default
used if not set. This is equivalent to standard attribute
connectionTimeout. (byte)Value between NoteOn some JDK versions, setting
+ Note: On some JDK versions, setting
soTrafficClass causes a problem. A work around for this
is to add the acceptCount
setting. Default value
- is 10000
.0
and 255
for the
traffic class on the socket. JVM default used if not set.-Djava.net.preferIPv4Stack=true
value to your
JVM options.
(int)The first value for the performance settings. See Socket Performance Options All three performance attributes must be set else the JVM defaults will be used for all three.
-(int)The second value for the performance settings. See Socket Performance Options All three performance attributes must be set else the JVM defaults will be used for all three.
-(int)The third value for the performance settings. See Socket Performance Options All three performance attributes must be set else the JVM defaults will be used for all three.
-(int) The timeout for a socket unlock. When a connector is stopped, it will try to release the acceptor thread by opening a connector to itself.
The default value is 250
and the value is in milliseconds
WARNING: The NIO connector for AJP + is experimentaland not yet fully functional.
+Below is a small chart that shows how the connectors differentiate.
+ + +