Discussion:
Error in apache mod-jk logs
Loai Abdallatif
2018-11-03 17:19:09 UTC
Permalink
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
Christopher Schultz
2018-11-03 17:58:52 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Loai,
Post by 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
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: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Loai Abdallatif
2018-11-04 08:31:37 UTC
Permalink
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
Post by 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
Loading...