From: Ernst Herzberg <earny@net4u.de>
To: Adam Goldstein <Whitewlf@Whitewlf.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Very High Load, kernel 2.4.18, apache/mysql
Date: Thu, 26 Sep 2002 05:03:02 +0200 [thread overview]
Message-ID: <200209260503.02474.earny@net4u.de> (raw)
In-Reply-To: <B7E52DA4-D0C3-11D6-8C5C-000502C90EA3@Whitewlf.net>
On Mittwoch, 25. September 2002 22:16, Adam Goldstein wrote:
> [.....] It has still
> reached >25 load when apache processes reached 120 (112 active
> according to server-status) and page loads come to near dead stop...
> segfaults still exist, even with fixed mysql connection calls. :(
> 1-4/min under present 25+ load.
>
> [.....]
> Server uptime: 2 hours 10 minutes 6 seconds
> 43 requests currently being processed, 13 idle servers
> KK_WW_WW_K_KWLWWWKW_KKKK.__K_WWW_WWW_K_WWWWK_WKWW_WKK.W...W....W...W..
>> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
>> 16800 apache 20 0 4732 4260 2988 R 37.7 0.2 0:35 httpd
>> 21171 apache 16 0 4976 4548 3268 R 36.6 0.2 2:02 httpd
>> 6949 apache 17 0 4604 4132 2936 R 36.5 0.2 0:53 httpd
>> 29183 apache 17 0 4900 4468 3192 R 36.0 0.2 6:18 httpd
--------------------------------------------------------
Looks very bad. Not the '>25 load', don't panic if that reaches more than 50 or more,
if at the same time the processors don't reaches the 100%.
First reconfigure your apache, with
MaxClients 256 # absolute minimum, maybe you have to recompile apache
MinSpareServers 100 # better 150 to 200
MaxSpareServers 200 # bring it near MaxClients
Make shure, you have enough resources available, su to apache, make shure
ulimit -a
data seg size (kbytes) unlimited
file size (blocks) unlimited
max locked memory (kbytes) unlimited
max memory size (kbytes) unlimited
open files 65536 (!!)
pipe size (512 bytes) 8
stack size (kbytes) unlimited
cpu time (seconds) unlimited
max user processes 4095 (!!)
virtual memory (kbytes) unlimited
cat /proc/sys/fs/file-max
131072
Your machine should handle that.
Reason: Bring the count of forks of apache clients to a minimum. But you have to be careful.
You need everywhere the needed resources, max client connects to mysql for example.
And increase the apache-servers in several steps. If you have a bug or bad implementation
in your php scripts, you can run out of your cpu-resources.
If still the cpu-usage is about 100%, redesign your software or buy a bigger machine ;-)
<Earny>
next prev parent reply other threads:[~2002-09-26 2:57 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0EBC45FCABFC95428EBFC3A51B368C9501AF4F@jessica.herefordshire.gov.uk>
2002-09-25 20:16 ` Very High Load, kernel 2.4.18, apache/mysql Adam Goldstein
2002-09-25 21:26 ` Roger Larsson
2002-09-26 3:03 ` Ernst Herzberg [this message]
2002-09-26 18:36 ` Marco Colombo
2002-09-26 19:27 ` Rik van Riel
2002-09-26 20:02 ` Marco Colombo
2002-09-26 20:09 ` Rik van Riel
2002-09-26 20:25 ` Ernst Herzberg
2002-09-27 8:52 ` Martin Brulisauer
2002-10-01 5:36 ` David Rees
[not found] <3D90FD7B.9080209@wanadoo.fr>
2002-09-25 1:12 ` Adam Goldstein
2002-09-24 23:27 Adam Goldstein
2002-09-25 0:59 ` Roger Larsson
2002-09-25 1:28 ` Rik van Riel
2002-09-25 2:38 ` Adam Goldstein
2002-09-25 5:24 ` Simon Kirby
2002-09-25 6:56 ` Adam Goldstein
2002-09-25 7:20 ` Simon Kirby
2002-09-25 7:51 ` Paweł Krawczyk
2002-09-25 13:13 ` Rik van Riel
2002-09-25 22:54 ` Jose Luis Domingo Lopez
2002-09-26 17:09 ` Joachim Breuer
2002-09-26 17:16 ` Rik van Riel
2002-09-25 3:50 ` Bernd Eckenfels
2002-09-25 3:48 ` Bernd Eckenfels
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200209260503.02474.earny@net4u.de \
--to=earny@net4u.de \
--cc=Whitewlf@Whitewlf.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox