Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 1998 18:14:43 +1200 (NZST)
From:      Andrew McNaughton <andrew@squiz.co.nz>
To:        isp@FreeBSD.ORG
Subject:   URGENT: resource allocation to web server
Message-ID:  <Pine.BSF.3.96.980813171614.174I-100000@aniwa.sky>

next in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980813171614.174I-100000>