Error in apache mod-jk logs

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in apache mod-jk logs

Loai Abdallatif
Dear Colleagues
We installed apache with mod_jk that connected to tomcat workers on the
different machine, during monitoring the received requests we notice the
below error on mod_jk log, and after checking the worker log we find the
request received and logged in the access-log of the worker but the main
problem is Tomcat Instance is working and running while the apache shows
the below error.

also I requested static object from Tomcat worker , and the below error
didn't appear in modjk logs


[Sat Nov 03 13:06:20 2018][54448:140562048997120] [warn]
ajp_get_endpoint::jk_ajp_common.c (3372): Unable to get the free endpoint
for worker worker_app1 from 1 slots
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
service::jk_lb_worker.c (1343): could not get free endpoint for worker
worker_app1 (0 retries)
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
service::jk_lb_worker.c (1650): All tomcat instances failed, no more
workers left for recovery (attempt=1, retry=1)
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
service::jk_lb_worker.c (1670): All tomcat instances are busy or in error
state
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [error]
service::jk_lb_worker.c (1675): All tomcat instances failed, no more
workers left
Reply | Threaded
Open this post in threaded view
|

Re: Error in apache mod-jk logs

Christopher Schultz-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Loai,

On 11/3/18 13:19, Loai Abdallatif wrote:

> Dear Colleagues
>
> We installed apache with mod_jk that connected to tomcat workers on
> the different machine, during monitoring the received requests we
> notice the below error on mod_jk log, and after checking the worker
> log we find the request received and logged in the access-log of
> the worker but the main problem is Tomcat Instance is working and
> running while the apache shows the below error.
>
> also I requested static object from Tomcat worker , and the below
> error didn't appear in modjk logs
>
>
> [Sat Nov 03 13:06:20 2018][54448:140562048997120] [warn]
> ajp_get_endpoint::jk_ajp_common.c (3372): Unable to get the free
> endpoint for worker worker_app1 from 1 slots [Sat Nov 03 13:06:20
> 2018][54448:140562048997120] [info] service::jk_lb_worker.c (1343):
> could not get free endpoint for worker worker_app1 (0 retries) [Sat
> Nov 03 13:06:20 2018][54448:140562048997120] [info]
> service::jk_lb_worker.c (1650): All tomcat instances failed, no
> more workers left for recovery (attempt=1, retry=1) [Sat Nov 03
> 13:06:20 2018][54448:140562048997120] [info]
> service::jk_lb_worker.c (1670): All tomcat instances are busy or in
> error state [Sat Nov 03 13:06:20 2018][54448:140562048997120]
> [error] service::jk_lb_worker.c (1675): All tomcat instances
> failed, no more workers left

Are you *sure* the requests are getting through? Usually those errors
mean that the request never made it to a back-end Tomcat.

What kind of Apache MPM are you running (prefork, event, etc.)? What
configuration do you have for MaxWorkers/MaxRequests/MaxThreads/etc.
that are relevant for your MPM?

What does your Tomcat <Connector> configuration look like for AJP? How
many back-end Tomcat servers do you have?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlvd4dsACgkQHPApP6U8
pFgRQQ//R9MTu10PT2yiqVzFsa74ylviQOH3RTiZpudcxEfFKGdHNwcT9x49GcoN
iOobXt/DD5vC8GagabIA4twtVBYT9BI8kMU2GEHByUXWM7B9JdHJVNOXWSJU5Vyr
VrQg909FiisQJXwQI+wMm5iRar00abJ+b8SRZ3k5AgC2bM8ybBoDA+M3ypBNSQFx
qY9LheTpt37zktYVRNf1YtJpdAKJEIGiTxvT6rFvKlPco50DeKqBZRKT3XrE/6rd
Uu9VXnkzQ+1DMeI2BLd9DZzlltT28EpbpC1XHMlPTd9nHkK6ORqDQPwLLkqgjHAq
hXodLQtlpfbpEtk6FgPY/OZqTQTJL1mxEX8uGOpQDXD8yyEx7ro5h6i00xAH8GfI
1+Lk70zuBBrVmeDhTHcBD+du0l9nXPLWBAs5KlXcFmxjKcGY0y6N6V7zk1fuqRJp
N/b2FfdzYo3jF8uh0zjswg0MvmbLunt0KQ1BP3VZFbKFWJsvHTzkElPtQe0jYwJ6
W43KtCWMbE4Ppo1Y++0cJz1e08KQ0+6uGCgKkOb6zrUe/b8wd7qGGhtqDg0Fde4R
biJYqIsobNJzs8r/aLuY1tq6CPplb+rNIUAoSmhIoL6uhqxjZwNitX5YIBWfYrW8
DApAWGXaUDhOgFteASZ9xf1203ihqFcNwtm/JVu6lS/06SNgqU4=
=DMcF
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Error in apache mod-jk logs

Loai Abdallatif
In reply to this post by Loai Abdallatif
The Application works smoothly but when I do may refresh on the browser ,
the error below occurs
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [warn]
ajp_get_endpoint::jk_ajp_common.c (3372): Unable to get the free endpoint
for worker worker_app1 from 1 slots
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
service::jk_lb_worker.c (1343): could not get free endpoint for worker
worker_app1 (0 retries)
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
service::jk_lb_worker.c (1650): All tomcat instances failed, no more
workers left for recovery (attempt=1, retry=1)
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
service::jk_lb_worker.c (1670): All tomcat instances are busy or in error
state
[Sat Nov 03 13:06:20 2018][54448:140562048997120] [error]
service::jk_lb_worker.c (1675): All tomcat instances failed, no more
workers left


On Sat, Nov 3, 2018 at 7:19 PM Loai Abdallatif <[hidden email]>
wrote:

> Dear Colleagues
> We installed apache with mod_jk that connected to tomcat workers on the
> different machine, during monitoring the received requests we notice the
> below error on mod_jk log, and after checking the worker log we find the
> request received and logged in the access-log of the worker but the main
> problem is Tomcat Instance is working and running while the apache shows
> the below error.
>
> also I requested static object from Tomcat worker , and the below error
> didn't appear in modjk logs
>
>
> [Sat Nov 03 13:06:20 2018][54448:140562048997120] [warn]
> ajp_get_endpoint::jk_ajp_common.c (3372): Unable to get the free endpoint
> for worker worker_app1 from 1 slots
> [Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
> service::jk_lb_worker.c (1343): could not get free endpoint for worker
> worker_app1 (0 retries)
> [Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
> service::jk_lb_worker.c (1650): All tomcat instances failed, no more
> workers left for recovery (attempt=1, retry=1)
> [Sat Nov 03 13:06:20 2018][54448:140562048997120] [info]
> service::jk_lb_worker.c (1670): All tomcat instances are busy or in error
> state
> [Sat Nov 03 13:06:20 2018][54448:140562048997120] [error]
> service::jk_lb_worker.c (1675): All tomcat instances failed, no more
> workers left
>