John Moore wrote:
Rainer Jung wrote:
Which connector do you use? The usual Coyote (Jav) connector, or the
native APR connector (also called tcnative)?
Hmm.. good question.. I follow the directions, compile and it (make
install) puts the mod_jk.so in the ../apache/modules directory. I would
guess it is the native since I compile the code in the ../native
directory. Guess I did not pickup that there was a difference..
The question was aimed at the Tomcat side. There are connectors on the
Tomcat side, responsible for handling the incoming traffic. If you are
using the Linux default, pure Java, then it is the Coyote connector and
you will get an info message during startup, that Tomcat cannot find the
native APR connector.
If you compile tcnative and add the resulting shared object file to
Tomcat, then you are using the APR connector and the INFO message during
startup will go away. In a situation were you are debugging a connection
problem I would prefer the pure Java connector in order to make the
system less complex. If you have a good use case for the APR connector
(tcnative), then it's fine to use it, but for troubleshooting, it would
be easier to not use it.
Actually I do.. Here is that setting from my server.xml
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false"
redirectPort="8443"
protocol="AJP/1.3"
connectionTimeout="60000"
maxThreads="750"
debug="0" />
Is there anything else here that needs changing..?
Hmmm, maybe set connectionTimeout to 600000 instead of 60000.
Otherwise TC and mod_jk don't use the same timeout (I think you had 10
minutes ofr mod_jk). This will not be the reason for your strange
observation, but it should reduce the CLOSE_WAIT connections during
normal operations.
Just to be clear..
The Tomcat Connector setting for port 8009 of "connectionTimeout" should
equal the worker.properties setting of:
connection_pool_timeout
or
connect_timeout
?
Units on the JK side: seconds. Units on the TC side: milliseconds.
So: connection_pool_timeout * 1000 = connectionTimeout
It's not nice, but as walways there are those historic reasons ...
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]