Re: Reducing load for LAMP app?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sun, 06 Jan 2008 20:47:11 -0500
Gilles Ganault wrote:
On Sun, 06 Jan 2008 15:54:17 -0500, Jerry Stuckle
<jstucklex@xxxxxxxxxxxxx> wrote:
It's already in seconds.
OK. I can live with the trailing E :-)
The training E is not in the number - that's how very small floating point numbers are displayed.
Looks like a very busy host:
======
load average: 61.88, 51.08, 74.30
Tasks: 476 total, 7 running, 467 sleeping, 0 stopped, 2 zombie
Cpu(s): 78.8% us, 18.7% sy, 0.0% ni, 0.7% id, 0.3% wa, 0.5% hi,
1.0% si
Mem: 1015484k total, 993344k used, 22140k free, 76920k
buffers Swap: 514040k total, 101032k used, 413008k free, 208496k
cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
10685 ze-card 19 19 984 736 724 R N 93.3 0.0 5671m webalizer
32072 nobody 9 0 16932 15M 12156 S 6.0 0.3 0:01 httpd
32196 nobody 9 0 16224 14M 12144 S 3.5 0.3 0:01 httpd
1868 nobody 9 0 16284 14M 12620 S 3.1 0.3 0:00 httpd
2136 nobody 9 0 16080 14M 12164 S 2.5 0.3 0:00 httpd
32205 nobody 9 0 16300 14M 12136 S 2.3 0.3 0:00 httpd
32231 nobody 9 0 16316 14M 12172 S 2.3 0.3 0:00 httpd
32124 nobody 9 0 16620 14M 12184 S 1.9 0.3 0:01 httpd
======
If I understood what I read on top and vmstat, this host has enough
RAM, but the CPU is heavily used (load average much higher than 1),
with lots of sleeping processes.
I have to find out if it's just PHP or MySQL, or even the network that
is the bottleneck.
Lots of sleeping processes is normal. To me, memory looks a bit marginal. Not enough to necessarily cause problems, because you're only using a little swap space. The real question would be if this is normal, a peak - or maybe a lull in the traffic. In the last case it could be a problem.
And yes, the CPU usage is high, but not necessarily that high.
I'm really wondering if your host is trying to put too many people on your server. Monitoring the results of top over a period of time will help show you.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- References:
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Jerry Stuckle
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Jerry Stuckle
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Rik Wasmus
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Jerry Stuckle
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- From: Jerry Stuckle
- Re: Reducing load for LAMP app?
- From: Gilles Ganault
- Re: Reducing load for LAMP app?
- Prev by Date: Re: TRUE and FALSE are treated differently
- Next by Date: Re: Separating static and dynamic contents?
- Previous by thread: Re: Reducing load for LAMP app?
- Next by thread: Re: Reducing load for LAMP app?
- Index(es):
Relevant Pages
|