You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/08 23:51:13 UTC

DO NOT REPLY [Bug 33457] New: - 1.2.8 jk: cache size set to incorrect value

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33457>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33457

           Summary: 1.2.8 jk: cache size set to incorrect value
           Product: Tomcat 5
           Version: Unknown
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: George.Lindholm@ubc.ca


I keep seeing these errors in the jk log file:

[Sat Feb 05 05:28:27 2005] [info]  ajp_done::jk_ajp_common.c (1947): could not
find empty cache slot from 1 for worker myUBC. Rise worker cachesize


After poking around in the code for a bit I discovered that the "1" referred
to the cache size. What I couldn't figure out is why it was "1" when httpd.conf
had:

ThreadLimit         250
StartServers         1
MaxClients          400
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     100
MaxRequestsPerChild  0


After adding some log calls I discovered that the call to 
jk_set_worker_def_cache_size() in jk_child_init() happens
after the call to ajp_init() which is why the cache size is 1.

Here is the log file entries (including the extra ones I added):

[Tue Feb 08 14:17:42 2005] [24646:1] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 0
[Tue Feb 08 14:17:42 2005] [24646:1] [debug] build_worker_map::jk_worker.c
(196): creating worker myUBC
[Tue Feb 08 14:17:42 2005] [24646:1] [debug] wc_create_worker::jk_worker.c
(120): about to create instance myUBC of ajp13
[Tue Feb 08 14:17:42 2005] [24646:1] [debug] wc_create_worker::jk_worker.c
(133): about to validate and init myUBC
[Tue Feb 08 14:17:42 2005] [24646:1] [debug] ajp_validate::jk_ajp_common.c
(1721): worker myUBC contact is localhost:7090
[Tue Feb 08 14:17:42 2005] [24646:1] [error] ajp_init::jk_ajp_common.c (1755):
ajp_init
[Tue Feb 08 14:17:42 2005] [24646:1] [error] ajp_init::jk_ajp_common.c (1758):
def cache size 1
[Tue Feb 08 14:17:42 2005] [24646:1] [error] ajp_init::jk_ajp_common.c (1762):
new cache size 1
...
[Tue Feb 08 14:17:42 2005] [24646:1] [debug] ajp_init::jk_ajp_common.c (1856):
setting connection cache size to 1
[Tue Feb 08 14:17:42 2005] [24646:1] [error] init::jk_ajp13_worker.c (53): init
[Tue Feb 08 14:17:42 2005] [24646:1] [debug] build_worker_map::jk_worker.c
(208): removing old myUBC worker 
[Tue Feb 08 14:17:44 2005] [24647:1] [debug]
uri_worker_map_open::jk_uri_worker_map.c (461): rule map size is 0
[Tue Feb 08 14:17:44 2005] [24647:1] [debug] build_worker_map::jk_worker.c
(196): creating worker myUBC
[Tue Feb 08 14:17:44 2005] [24647:1] [debug] wc_create_worker::jk_worker.c
(120): about to create instance myUBC of ajp13
[Tue Feb 08 14:17:44 2005] [24647:1] [debug] wc_create_worker::jk_worker.c
(133): about to validate and init myUBC
[Tue Feb 08 14:17:44 2005] [24647:1] [debug] ajp_validate::jk_ajp_common.c
(1721): worker myUBC contact is localhost:7090
[Tue Feb 08 14:17:44 2005] [24647:1] [error] ajp_init::jk_ajp_common.c (1755):
ajp_init
[Tue Feb 08 14:17:44 2005] [24647:1] [error] ajp_init::jk_ajp_common.c (1758):
def cache size 1
[Tue Feb 08 14:17:44 2005] [24647:1] [error] ajp_init::jk_ajp_common.c (1762):
new cache size 1
...
[Tue Feb 08 14:17:44 2005] [24647:1] [debug] ajp_init::jk_ajp_common.c (1856):
setting connection cache size to 1
[Tue Feb 08 14:17:44 2005] [24647:1] [error] init::jk_ajp13_worker.c (53): init
[Tue Feb 08 14:17:44 2005] [24647:1] [debug] build_worker_map::jk_worker.c
(208): removing old myUBC worker 
[Tue Feb 08 14:17:44 2005] [24649:1] [error] jk_child_init::mod_jk.c (2198):
thread limit is 100
[Tue Feb 08 14:17:44 2005] [24649:1] [debug] jk_child_init::mod_jk.c (2202):
Initialized mod_jk/1.2.8
[Tue Feb 08 14:17:44 2005] [24649:1] [error] jk_child_init::mod_jk.c (2203):
Cache size 100

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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