From owner-freebsd-isp Wed Aug 12 23:17:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA15591 for freebsd-isp-outgoing; Wed, 12 Aug 1998 23:17:10 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from aniwa.sky (aniwa.actrix.gen.nz [203.96.56.186]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA15570 for ; Wed, 12 Aug 1998 23:17:04 -0700 (PDT) (envelope-from andrew@squiz.co.nz) Received: from localhost (andrew@localhost) by aniwa.sky (8.8.7/8.8.7) with SMTP id SAA08495 for ; Thu, 13 Aug 1998 18:14:44 +1200 (NZST) (envelope-from andrew@squiz.co.nz) Date: Thu, 13 Aug 1998 18:14:43 +1200 (NZST) From: Andrew McNaughton X-Sender: andrew@aniwa.sky Reply-To: andrew@squiz.co.nz To: isp@FreeBSD.ORG Subject: URGENT: resource allocation to web server Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I wrote earlier: > My webserver is getting hit heavily right now, and is failing to fork > critical CGI and sendmail processes. How do I increase it's resource > allocation? > Load is sitting at around 0.5, CPU utilisation under 10%, not using it's > swap space at all. > The webserver's user has about 20 or so processes, with mail processes > forking off for perhaps another 20. I don't want these to fail. I think I underestimated that. newsroom@dawn$ limits Resource limits (current): cputime infinity secs filesize infinity kb datasize 131072 kb stacksize 65536 kb coredumpsize infinity kb memoryuse-cur 32768 kb memorylocked infinity kb maxprocesses-cur 64 openfiles-cur 1024 I've added "ulimit -S -u 256" to apachectl's start function. Hopefully this will fix the problem. I have written a tiny CGI and confirmed that the setting is passed through to CGI descendants of the shell running as a different user. Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message