tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: AW: jk_handler::mod_jk.c (2917): Could not get endpoint for worker ...
Date Mon, 17 Sep 2018 18:35:39 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Clemens,

On 9/17/18 02:54, Clemens Wyss DEV wrote:
>> How many httpd nodes?
> 1

Ok.

>> Which MPM?
> Tried worker and event

These should have roughly the same semantics.

>> Per MPM, what is MaxClients, etc.?
> MaxRequestWorkers      512 ThreadsPerChild        32

So the maximum number of simultaneous connections your httpd nodes (I
guess just 1) will try to send to the backend Tomcat node will be 512
based upon MaxRequestWorkers.

>> How many Tomcat nodes?
> 1
> 
>> Tomcat connector configuration?
> <Connector port="8009" enableLookups="true" redirectPort="8443"
> maxThreads="400" protocol="AJP/1.3" />

So you can have 512 AJP connections from httpd connecting to Tomcat
which has 400 threads and, depending upon which connector is actually
in use, you may be limited to 400 connections or 10,000.

Based upon your situation, I'd say you are using Java BIO and are thus
limited to 400 connections.

What version of Tomcat are you using? What connector eventually gets
used? There are several:

Java BIO
Java NIO
Java NIO2
APR

You can tell from the startup messages what kind of connector you get;
it's shown when the connector starts and emits an INFO message saying
that it's configured.

- -chris

> -----Urspr√ľngliche Nachricht----- Von: Christopher Schultz
> <chris@christopherschultz.net> Gesendet: Sonntag, 16. September
> 2018 20:42 An: users@tomcat.apache.org Betreff: Re:
> jk_handler::mod_jk.c (2917): Could not get endpoint for worker ...
> 
> Clemens,
> 
> On 9/15/18 06:50, Clemens Wyss DEV wrote:
>> Hi all, we are seeing quite a few: "[Mon Sep 10 15:19:46 2018] 
>> [27562:140532026529536] [error] jk_handler::mod_jk.c (2917):
>> Could not get endpoint for worker=testAPJ"
> 
>> errors in our md_jk.log. Worker properties are as follwos:
> 
>> ... worker.list=testAPJ
> 
>> worker.testAPJ.port=8009 worker.testAPJ.host=127.0.0.1 
>> worker.testAPJ.type=ajp13 worker.testAPJ.socket_keepalive=1 
>> worker.testAJP.connection_pool_timeout=600 ...
> 
>> At that point Apache seems to be stuck/struggling (but our tomcat
>> does not seem to be under pressure). Restarting Apache solves the
>> issue ... till it pops up again ...
> 
>> What is happening? What needs tob e tuned?
> 
>> Apache 2.4.34, tried both event- and worker-MPM
> 
> How many httpd nodes? Which MPM? Per MPM, what is MaxClients,
> etc.?
> 
> How many Tomcat nodes? Tomcat connector configuration?
> 
> Usually, this happens because you are overwhelming your Tomcat
> nodes with connections from the web server. Remember that every
> Tomcat node needs to be able to handle the maximum number
> connections from *all web servers simultaneously*. That number is
> probably way more than your Tomcat connector is configured to
> handle.
> 
> -chris
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAluf8/sACgkQHPApP6U8
pFh5Dw/+KPqqu13CiyyjvZx2QrCFyQuxW4m2iXW8TK2AEzRR3G0jlefFZgrJWpfb
TwZwr57XEE3cKo7l2R8YcFOcJARfkZRsx7D8dHvqsmDpL9zlHBCnZ+PVEBxla1Qk
oyh1n0KYJMO98sHaoZghKjYJ8b5GALe2XeGhCf/LTZvdkM+3bmY2S64x4vXuDcfG
47VGjWu0xzjFQJ4INd2bnRTXbXvScGmdv8qbHX2EmT/PjsAmzeo+hxiOBWbPJG6K
b+Mpf1Nb9SpcwBRLHLy4/xX2yo34vrkiLcmvBO7HUoIPCWpcLFAdtmFLSBWStBK1
m29fcvr0Eg1UREajDpYKICrUfArWUMKZZv4OEkrZaWr93vbPV2bMnJ/qC2k7lQIt
k5mdag4L5vEonACQv7o9cstAEW5Q6FN9mwHvwyZ42n97CgA/pBDbNIIElD5l/Y4s
o6jm9xUmc+6BUiR4Wq9WxBlVeziqV1RBJaExDr6CNpJ6FVRgHBuC/UdEIeqa6Stv
PwoKT3dZJaXDmBeXFbY9024b6eKkR3T0y1murM1V/udL+ZfBWAAGRW2+/FNVLPhx
e3JxMactH7Dt3MTTRRRtOHgSOaIMtH+yNt6iw4yzJQDgAwtnHTWt/XjR+D/K7nux
POkNME2yMstqx/hvwmXgxb7mQusvYKHCb9Bh+K+rraPrm6Vo1xc=
=45Ix
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message