Reply to Re: Reducing load for LAMP app?

Your name:

Reply:


Posted by Jerry Stuckle on 01/07/08 01:47

Gilles Ganault wrote:
> On Sun, 06 Jan 2008 15:54:17 -0500, Jerry Stuckle
> <jstucklex@attglobal.net> 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@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация