You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Graham Frank <gf...@neoservers.com> on 2006/05/10 14:06:45 UTC

[users@httpd] So I've switched to the event MPM

As the subject said, I'm testing the event MPM.  Something I've noticed is
that even with LogLevel set to debug, event doesn't report itself.  The docs
say that with debug set, the current MPM should announce itself into the
error_log on startup.  For example:

[Mon May 08 15:13:37 2006] [debug] worker.c(1715): AcceptMutex: sysvsem
(default: sysvsem)

But when using event, it doesn't submit that line.

Also, I know that event handles keepalive requests differently, but should
that mean that /server-status would report no keepalive requests?  It
appears as if KeepAlive were off (no K's).

That's all!  Thanks for responses.

--Graham Frank


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] So I've switched to the event MPM

Posted by Graham Frank <gf...@neoservers.com>.
Ah, I see.

At any rate, the event MPM has passed the first 24 hours without any issue.
At our peak, we hit 450 requests per second yesterday with about 3.4GB of
RAM allocated to Apache.  It appears to be doing well, but I won't pass
praise until at least a week from switching to it.

One noteable difference: With all of the KeepAlive requests being sent to
the support thread rather than having a worker thread idle, the
server-status is much more clean.  This beats having to stare at 300 or so
K's in a row.

--Graham Frank

-----Original Message-----
From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua Slive
Sent: Wednesday, May 10, 2006 9:03 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] So I've switched to the event MPM

On 5/10/06, Graham Frank <gf...@neoservers.com> wrote:
> A bug you say?  Yay!  I've contributed.  Any way, moving along.
>
> I understand that it does that, but the Apache server-status lists all
> threads.  Shouldn't that thread be visible as something other than
working?

No, server-status lists only worker threads.  It doesn't list support
threads like the ones used to handle keep-alives.

But I'm just guessing here.  I'd have to check the code to see what is
really going on.  Ultimately, I think the idea was to have
server-status list all connections rather than all threads, but I
don't think that has happened yet.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] So I've switched to the event MPM

Posted by Joshua Slive <jo...@slive.ca>.
On 5/10/06, Graham Frank <gf...@neoservers.com> wrote:
> A bug you say?  Yay!  I've contributed.  Any way, moving along.
>
> I understand that it does that, but the Apache server-status lists all
> threads.  Shouldn't that thread be visible as something other than working?

No, server-status lists only worker threads.  It doesn't list support
threads like the ones used to handle keep-alives.

But I'm just guessing here.  I'd have to check the code to see what is
really going on.  Ultimately, I think the idea was to have
server-status list all connections rather than all threads, but I
don't think that has happened yet.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] So I've switched to the event MPM

Posted by Graham Frank <gf...@neoservers.com>.
A bug you say?  Yay!  I've contributed.  Any way, moving along.

I understand that it does that, but the Apache server-status lists all
threads.  Shouldn't that thread be visible as something other than working?

--Graham Frank

-----Original Message-----
From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua Slive
Sent: Wednesday, May 10, 2006 8:34 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] So I've switched to the event MPM

I've never tried event myself but...

On 5/10/06, Graham Frank <gf...@neoservers.com> wrote:
> As the subject said, I'm testing the event MPM.  Something I've noticed is
> that even with LogLevel set to debug, event doesn't report itself.  The
docs
> say that with debug set, the current MPM should announce itself into the
> error_log on startup.  For example:
>
> [Mon May 08 15:13:37 2006] [debug] worker.c(1715): AcceptMutex: sysvsem
> (default: sysvsem)
>
> But when using event, it doesn't submit that line.

Sounds like a small bug.

>
> Also, I know that event handles keepalive requests differently, but should
> that mean that /server-status would report no keepalive requests?  It
> appears as if KeepAlive were off (no K's).

That would make sense.  Keep-alives in event are not handled by the
worker threads (listed in server-status) but by a separate thread.  So
it sounds as if everything is working perfectly.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] So I've switched to the event MPM

Posted by Joshua Slive <jo...@slive.ca>.
I've never tried event myself but...

On 5/10/06, Graham Frank <gf...@neoservers.com> wrote:
> As the subject said, I'm testing the event MPM.  Something I've noticed is
> that even with LogLevel set to debug, event doesn't report itself.  The docs
> say that with debug set, the current MPM should announce itself into the
> error_log on startup.  For example:
>
> [Mon May 08 15:13:37 2006] [debug] worker.c(1715): AcceptMutex: sysvsem
> (default: sysvsem)
>
> But when using event, it doesn't submit that line.

Sounds like a small bug.

>
> Also, I know that event handles keepalive requests differently, but should
> that mean that /server-status would report no keepalive requests?  It
> appears as if KeepAlive were off (no K's).

That would make sense.  Keep-alives in event are not handled by the
worker threads (listed in server-status) but by a separate thread.  So
it sounds as if everything is working perfectly.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org