Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Pete Houston
On Tue, Nov 04, 2014 at 03:58:25PM +, Rajalakshmi Iyer wrote: > The server has a KeepAliveTimeout of 120 seconds. That is probably the longest KeepAliveTimeout I have seen. Is there some particular reason that you have it so high? In 2.4 the default value is 5 seconds, which ought to be a rea

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rainer Jung
Am 04.11.2014 um 20:36 schrieb Rajalakshmi Iyer: Ok. Thanks. Does this situation sound plausible - Keep alive connections are not being used effectively by client applications (i.e. subsequent requests on keep-alive connections are not frequent enough to keep Apache workers busy all the time, re

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
On Tue, Nov 4, 2014 at 2:36 PM, Rajalakshmi Iyer wrote: > Does this situation sound plausible - Keep alive connections are not being > used effectively by client applications (i.e. subsequent requests on > keep-alive connections are not frequent enough to keep Apache workers busy > all the time, r

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rajalakshmi Iyer
Ok. Thanks. Does this situation sound plausible - Keep alive connections are not being used effectively by client applications (i.e. subsequent requests on keep-alive connections are not frequent enough to keep Apache workers busy all the time, resulting in low CPU utilisation). At the same time,

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
On Tue, Nov 4, 2014 at 2:17 PM, Rajalakshmi Iyer wrote: > Could you also elaborate on the statement --- With event, keep alive > connections don't tie up a thread between requests. Does that mean a thread > is allotted per connection, rather than per request in case of keep-alive > connections (th

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rajalakshmi Iyer
So we have a situation where keep=alive connections are not being used effectively by client applications (i.e. subsequent requests on keep-alive connections are not frequent enough to keep Apache workers busy all the time, resulting in low CPU utilisation). At the same time, because there are alre

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
On Tue, Nov 4, 2014 at 11:23 AM, Eric Covener wrote: > No, with event, keepalive connections don't tie up a thread between requests. Sorry, I see what you mean. Yes, each process will stop calling accept out of fear that too many keepalive connections may become active (and hence be queued). Each

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
No, with event, keepalive connections don't tie up a thread between requests. On Tue, Nov 4, 2014 at 10:58 AM, Rajalakshmi Iyer wrote: > Lets say the server is running with a max of 720 connections > (AsyncRequestWorkerFactor + 1) * MaxRequestWorkers (in this case 3 * 240 = > 720) > > No new conn

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rajalakshmi Iyer
Lets say the server is running with a max of 720 connections *(* AsyncRequestWorkerFactor* + 1) * **MaxRequestWorkers *(in this case 3 * 240 = 720) No new connections will be accepted by the server at this point, until the current connections is < *ThreadsPerChild + (AsyncRequestWorkerFactor * num

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
On Tue, Nov 4, 2014 at 9:40 AM, Rajalakshmi Iyer wrote: > In case of an event MPM, unlike the worker MPM, can it be expected that an > idle worker thread starts working on a new connection or new requests on > another existing connection? > > Or is the worker thread tied to a connection and will

RE: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Tim Furlong
How can I remove myself from this mailing list before it drives me crazy? I have tried e-mailing users-unsubscr...@httpd.apache.org From: Rajalakshmi Iyer [mailto:r...@blismedia.com] Sent: 04 November 2014 14:41 To: users@httpd.apache.org Subject: Re: [

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rajalakshmi Iyer
In case of an event MPM, unlike the worker MPM, can it be expected that an idle worker thread starts working on a new connection or new requests on another existing connection? Or is the worker thread tied to a connection and will only work on requests on that connection till the connection is cl

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
On Tue, Nov 4, 2014 at 9:10 AM, Rajalakshmi Iyer wrote: > We might be able to increase the number of threads available to handle new > connections, but it seems like existing threads are doing nothing (CPU > utilization is quite low). How can that be explained? Threads in Apache work on a single

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Scott (firstclasswatches.co.uk)
The CPU consumed is the load required to fulfil 240 requests simultaneously while keeping the rest queued. As Eric said, If you want to use more of your available CPU you need to increase MaxRequestWorkers to 720 or more. Also ServerLimit and ThreadsPerChild as their multiple is currently 240 so

RE: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Tim Furlong
I’ve now sent two unsubscribe e-mails to this address - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org Is this a manual process I need to wait for? From: Rajalakshmi Iyer [mailto:r...@blismedia.com] Sent: 04 November 2014 14:11 To: users@htt

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rajalakshmi Iyer
Thanks Eric. We might be able to increase the number of threads available to handle new connections, but it seems like existing threads are doing nothing (CPU utilization is quite low). How can that be explained? Regards Raj On Tue, Nov 4, 2014 at 2:05 PM, Eric Covener wrote: > > Assuming the

Re: [users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Eric Covener
> Assuming the server is always under heavy load, the 240 worker threads are > busy working on 240 requests from 240 established connections. As soon as > they finish their work, they will be working on the subsequent requests on > the same connection. > > There are 720 connections that have bee

[users@httpd] Help needed with event MPM configuration

2014-11-04 Thread Rajalakshmi Iyer
Hello, I need some assistance with tuning Apache with event MPM. The Apache server in consideration is running an application module. The current MPM settings are - StartServers 2 ServerLimit 4 MinSpareThreads 60 MaxSpareThreads 240 M