Date: Fri, 31 Jan 1997 20:01:29 +0000 From: "Richard Gresek" <rg@gds.de> To: freebsd-isp@freebsd.org Subject: 300 000 hits / day Message-ID: <199701311902.UAA10205@gds.de>
next in thread | raw e-mail | index | archive | help
Hallo,
we are running a very haevy loaded www-server (300.000 hits per day,
45 MB data traffic per hour) on FreeBSD 2.2 (2.2 binaries, but 3.0
kernel), AMD 133, 64 MB RAM, Apache 1.2.
The server has a lot of hits and especially amounts of CGIs running.
Few weeks ago I had to increase the number of process per user in
the kernel, because the apache server could not spawn child processes for
the CGIs.
The only little problem is the increasing processor load between 0,8
and 2.0, sometimes hihger.
For that reason I configured a new dual P5 with 2 x P5, 200 MHz
(Gigabyte Board) with 3.0-972401-SNAP SMP. This is system has
been running without any problem with about 50 virtual www servers and
about 10 000 hits a day.
I changed the values in kernel tha same way also on the new server:
maxusers 100
options CHILD_MAX=512
options OPEN_MAX=512
Now, when I transfer the 300 000 hits server on this machine half of
the CGIs can not be started. The error log of the server shows:
#--------
[Fri Jan 31 19:09:00 1997] access to /usr/home/pdecker/cgi/show_dat.pl
failed for c4.hrz.uni-giessen.de, reason: couldn't spawn child
process
#---------
The error log is full of theses messages.
What else can be the cause that the server cannot start the child
processes?
I append the values of the kernel vriables to the end of this mail.
Thanks in advance
Richard
Values of the kernel on the new machine:
---------------------------------------
kern.ostype: FreeBSD
kern.osrelease: 3.0-SMP
kern.osrevision: 199506
kern.version: FreeBSD 3.0-SMP #0: Fri Jan 31 18:25:24 CET 1997
root@wwwserver.plusnet.de:/usr/src/sys/compile/SMP
kern.maxvnodes: 5375
kern.maxproc: 1620
kern.maxfiles: 3240
kern.argmax: 65536
kern.securelevel: -1
kern.hostname: wwwserver.plusnet.de
kern.hostid: 0
kern.clockrate: { hz = 100, tick = 10000, profhz = 1024, stathz = 128
}
kern.posix1version: 199009
kern.ngroups: 16
kern.job_control: 1
kern.saved_ids: 0
kern.boottime: { sec = 854734276, usec = 0 } Fri Jan 31 19:11:16 1997
kern.domainname:
kern.update: 30
kern.osreldate:
199702 kern.bootfile: /kernel
kern.maxfilesperproc: 3240
kern.maxprocperuid: 1619
kern.dumpdev: { major = 255, minor = -65281 }
kern.somaxconn: 128
kern.maxsockbuf: 262144
kern.ps_strings:-272637968
kern.usrstack: -272637952
kern.smp_active: 2
kern.smp_cpus: 2
kern.idle_debug: 0
kern.ignore_idleprocs: 1
kern.acct_suspend: 2
kern.acct_resume: 4
kern.acct_chkfreq: 15
kern.sockbuf_waste_factor: 8
kern.consmute: 0
Values of the kernel on the old machine, that is running fine:
--------------------------------------------------------------
kern.ostype: FreeBSD
kern.osrelease: 3.0-970114-SNAP
kern.osrevision: 199506
kern.version: FreeBSD 3.0-970114-SNAP #0: Wed Jan 15 12:00:33 MET 1997
root@webserver.plusnet.de:/usr2/src/sys/compile/GENERIC
kern.maxvnodes: 4260
kern.maxproc: 500
kern.maxfiles: 1000
kern.argmax: 65536
kern.securelevel: -1
kern.hostname: webserver.plusnet.de
kern.hostid: 0
kern.clockrate: { hz = 100, tick = 10000, profhz = 1024, stathz = 128}
kern.posix1version: 199009
kern.ngroups: 16
kern.job_control: 1
kern.saved_ids: 0
kern.boottime: { sec = 854732807, usec = 640000 }Fri Jan 31 18:46:47 1997
kern.domainname:
kern.update: 30
kern.osreldate: 199702
kern.bootfile: /kernel
kern.maxfilesperproc:
1000 kern.maxprocperuid: 499
kern.dumpdev: { major = 255, minor =-65281 }
kern.somaxconn: 128
kern.maxsockbuf: 262144
kern.ps_strings: -272637968
kern.usrstack: -272637952
kern.acct_suspend: 2
kern.acct_resume: 4
kern.acct_chkfreq: 15
kern.sockbuf_waste_factor: 8
kern.consmute: 0 w
+-------------------------------------------------------------------+
: Plus.Net Internet PoP fuer
: Oppenheimer Landstr. 55 Frankfurt & Westerwald
: 60596 Frankfurt
: Tel.: +49 69 61991275 http://www.plusnet.de
: Fax : +49 69 610238
+-------------------------------------------------------------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701311902.UAA10205>
