httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@gmail.com>
Subject Re: Re: [PATCH] tweak worker MPM "recovery" after pthread_create failure in child
Date Thu, 05 Aug 2004 12:56:17 GMT
On Thu, 05 Aug 2004 08:44:34 -0400, Brian Akins <bakins@web.turner.com> wrote:
> Jeff Trawick wrote:
> 
> >I've been working with a user on RedHat {A|E}S 2.1 that is
> >intermittently getting one of these thread create failures as the web
> >server tries to create a new child process to handle increased load.
> >It really sucks that the entire server bails out.
> >
> I think it's the stack size.  Try "ulimit -s 1024" before starting.

So I try "ulimit -s" on my RHAS 2.1 box and it says 8192.  So if this
is related to pthread_create failures, then I gather that:

a) default THREAD stack size is 8MB
b) Apache doesn't normally need nearly that much; 1MB should be sufficient

FWIW, I played with the Apache 2.1 directive ThreadStackSize (does
pthread_attr_setstacksize), and linuxthreads was the only platform
where it didn't seem to make a difference.  It was easy to demonstrate
that it was respected on some other pthread platforms (AIX, Solaris,
and HP-UX).

Thanks!

Mime
View raw message