Skip to main content

problem of jk connection.

No replies
ou_tanaka
Offline
Joined: 2012-05-05
Points: 0

Hi All.
I faced the problem of jk connection.
I use Apache 2.2 and Glassfish 3.0 on Linux.
I got the follows logs.

---------------------------------------------------------------------
[Tue Mar 06 11:16:35 2012] [25226:1426147648] [error] ajp_get_reply::jk_ajp_common.c (1926): (worker01) Timeout with waiting reply from tomcat. Tomcat is down, stopped or network problems (errno=110)
[Tue Mar 06 11:16:35 2012] worker web.example.test.jp 0.003146
[Tue Mar 06 11:16:35 2012] worker web.example.test.jp 0.002211
[Tue Mar 06 11:16:36 2012] worker web.example.test.jp 0.002567
[Tue Mar 06 11:16:36 2012] worker web.example.test.jp 0.002421
[Tue Mar 06 11:16:37 2012] [25226:1426147648] [info] ajp_service::jk_ajp_common.c (2447): (worker01) sending request to tomcat failed (recoverable), because of reply timeout (attempt=2)
[Tue Mar 06 11:16:37 2012] [25226:1426147648] [error] ajp_service::jk_ajp_common.c (2466): (worker01) connecting to tomcat failed.
[Tue Mar 06 11:16:37 2012] [25226:1426147648] [info] service::jk_lb_worker.c (1384): service failed, worker worker01 is in error state
[Tue Mar 06 11:16:37 2012] [25226:1426147648] [info] service::jk_lb_worker.c (1436): Forcing recovery once for 1 workers
[Tue Mar 06 11:16:37 2012] worker web.example.test.jp 104.142924
[Tue Mar 06 11:16:38 2012] worker web.example.test.jp 0.015548

---------------------------------------------------------------

Sometimes connection error or long time waiting happened.
But almost connectios is normal.
Server load is not high.
Why may this problem happen?
Should I increase number of maxthreadpool?

follow is my apache worker and glassfish maxthread pool setting.
---------------------------------------------------
*apache worker

StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0

*glassfish maxthread pool
max threadpool 32
----------------------------------------------------

Thanks in advance.