-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew,

On 9/9/2010 2:00 AM, Andrew Bruno wrote:
> [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_worker.c (242):
> creating worker loadbalancer
> [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_worker.c (146):
> about to create instance loadbalancer of lb
> [Wed Sep 08 22:57:36 2010] [6912:6336] [debug] jk_worker.c (159):
> about to validate and init loadbalancer
> [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_lb_worker.c (1536):
> allocating lb sub worker record from shared memory
> [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_worker.c (163):
> validate failed for loadbalancer
> [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_worker.c (262):
> failed to create worker loadbalancer

D'oh. In your original post, did you include your entire
workers.properties file? Also, can you post all your Jk* directives you
have active in your httpd configuration?

The code that performs validation of the worker is found in
native/common/jk_lb_worker.c:

static int JK_METHOD validate(jk_worker_t *pThis,
                              jk_map_t *props,
                              jk_worker_env_t *we, jk_logger_t *l)


> [Wed Sep 08 22:57:36 2010] [6912:6336] [error] jk_lb_worker.c (1536):
> allocating lb sub worker record from shared memory

This occurs on line 1536 (in mod_jk 1.2.30), in this neighborhood:

>    1533             for (i = 0; i < num_of_workers; i++) {
>    1534                 p->lb_workers[i].s = 
> jk_shm_alloc_lb_sub_worker(&p->p);
>    1535                 if (p->lb_workers[i].s == NULL) {
>    1536                     jk_log(l, JK_LOG_ERROR,
>    1537                            "allocating lb sub worker record from 
> shared memory");
>    1538                     JK_TRACE_EXIT(l);
>    1539                     return JK_FALSE;
>    1540                 }
>    1541             }

This looks like it might be a shared memory allocation error. Once you
get into the jk_shm and jk_pool code, there's no debug logging of any
kind :(

You might have to hack-in some debug logging if Rainer or Mladen can't
comment further. Are you comfortable compiling your own mod_jk? It looks
like compiling with DEBUG #defined to something will at least get you
jk_dump_pool calls when shared memory fails to be allocated.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyJJDIACgkQ9CaO5/Lv0PC5qgCgrC95f3fzfE/pVG1doE/IewW1
j8cAoKEwnNKI5Rs8RsYb6yISFiuY5P9L
=kWGg
-----END PGP SIGNATURE-----

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

Reply via email to