Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 1999 16:53:24 -0400
From:      Luis Moreno <luis@cantv.net>
To:        "D. Alex Neilson" <neilson@purple.nugate.com>
Cc:        questions@FreeBSD.ORG, isp@FreeBSD.ORG, neilson@www.nugate.com, neilson@usc.edu
Subject:   Re: apache server can't spawn child processes
Message-ID:  <380CDA44.EE6D9A51@cantv.net>
References:  <Pine.BSF.4.01.9910191309550.22740-100000@purple.nugate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Try this in the script that start the web server (under sh).
 ulimit -u 512
 ulimit -n unlimited

Hope it helps.

-luis

"D. Alex Neilson" wrote:

> Synopis: apache server can't spawn child processes
>
> Hello,
>
>   I've got 2.2.6 (yeah, I'll upgrade one of these days) which
> runs a very busy server of typically 300 nobody users (what apache
> children run as), and cgi programs can't spawn, getting this in the
> error log for this server:
>
>         (35)Resource temporarily unavailable:
>                 couldn't spawn child process:
>                 /content/somesite/public-html/something/cgi/step1.cgi
>
> I've beefed up maxusers to 512 which I now realize is overkill,
> increased CHILD_MAX to 512 in /usr/include/syslimits.h, tweaked
> the login.conf to this (I presume nobody maps to default):
>
>         default:\
>                 :cputime=infinity:\
>                 :datasize-cur=88M:\
>                 :stacksize-cur=64M:\
>                 :memorylocked-cur=40M:\
>                 :memoryuse-cur=256M:\
>                 :filesize=infinity:\
>                 :coredumpsize=infinity:\
>                 :maxproc-cur=512:\
>                 :openfiles-cur=8191:\
>                 :priority=0:\
>                 :requirehome@:\
>                 :umask=022:\
>                 :tc=auth-defaults:
>
> Here's how busy the server is right now (1pm PDT):
>
>         24.5 requests/sec - 437.6 kB/second - 17.9 kB/request
>         295 requests currently being processed, 30 idle servers
>
> I don't know what ceiling I'm banging up against and would appreciate
> pointers on beefing up system parameters to accomodate large apache
> server loads.
>
> Thanks,
>
> Alex
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-isp" in the body of the message





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?380CDA44.EE6D9A51>