On Thu, 05 Aug 2004 08:44:34 -0400, Brian Akins <[EMAIL PROTECTED]> 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!