Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: mod_jk - more than 15 workers = hang

James Masson

2007-01-31

Replies:


JkShmSize 256

That solved the problem - Thanks to all who replied!

>>
>> Note that the 16th worker config works fine, if specified as part of
>> the 15.
>
> I don't understand, what you mean by specifying a worker as part of
> another worker.
>

I was just saying that the problem wasn't a specific web-app or config - any 16th web-app would do it.

regards

James


Rainer Jung wrote:
> Hi James,
>
> I guess, the size of the shared memory is not big enough.
> You can increase it using the JkShmSize directive for Apache. The value
> is an integer value which is the provided shared memory size in Kilobytes.
>
> During startup with JkLogLevel debug you get messages like:
>
> ... do_shm_open::jk_shm.c (327): Truncated shared memory to 28800
> ... do_shm_open::jk_shm.c (360): Initialized shared memory size=28800
> free=28672 addr=0x2a98f02000
> ... do_shm_open_lock::jk_shm.c (266): Opened shared memory lock
> /var/tmp/install/apache2p/logs/jk-runtime-status.lock
> ... init_jk::mod_jk.c (2562): Initialized
> shm:/var/tmp/install/apache2p/logs/jk-runtime-status
>
> from which you can see, which file system object is used for the shared
> mem and which size is used. Usually the size should be big enough to
> handle 64 workers (including ajp13, load balancers and lb sub workers).
>
> You can check, the size that is being used on your system and then
> double it via JkShmSize and try again. Let us know your results.
>
> One question:
>
> James Masson wrote:
>>
>> Hi,
>>
>> I'm working on creating a pair of Apache mod_jk load balancers for an
>> Tomcat web-app farm.
>>
>> Redhat ES4
>> Server Version:   Apache/2.0.52 (Red Hat)
>> JK Version:   mod_jk/1.2.20
>>
>> apache-tomcat-5.5.20-1
>>
>> Everything works fine, until I exceed 15 load balancing workers on
>> mod_jk, then I get a 500-Internal Server Error, for every web-app.
>>
>> Note that the 16th worker config works fine, if specified as part of
>> the 15.
>
> I don't understand, what you mean by specifying a worker as part of
> another worker.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>
> _____________________________________________________________________
> This e-mail has been scanned for viruses by MessageLabs.

**********************************************************************
Confidentiality : This e-mail and any attachments are intended for the addressee only and may be confidential. If they come to you in error you must take no action based on them, nor must you copy or show them to anyone. Please advise the sender by replying to this e-mail immediately and then delete the original from your computer.

Opinion : Any opinions expressed in this e-mail are entirely those of the author and unless specifically stated to the contrary, are not necessarily those of the author?s employer.

Security Warning : Internet e-mail is not necessarily a secure communications medium and can be subject to data corruption. We advise that you consider this fact when e-mailing us.

Viruses : We have taken steps to ensure that this e-mail and any attachments are free from known viruses but in keeping with good computing practice, you should ensure that they are virus free.

Inspired Gaming (UK) Limited
Registered in England No 3565640
Registered Office 3 The Maltings Wetmore Road, Burton On Trent, Staffordshire DE14 1SE
_______________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Control Centre.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.