D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Webserver running with 90% memory used?

 

On Thu, 3 Nov 2005 09:35:57 +0000
Neil Williams wrote:

> On Thursday 03 November 2005 9:13 am, Grant Sewell wrote:
> > I've just installed phpsysinfo onto my webserver, and it keeps telling me
> > that the thing is using 90% or more of it's RAM.  Sure enough, when I ssh
> > into the box and run top it shows snort using nearly 15%,
> 
> No idea if that is correct, but:
> 
> > mysql using 7 or 
> > 8% (although there's sometimes 10-15 instances of mysql listed) and about
> > 10-15 instances of apache2 (each showing about 5%). 
> 
> That is perfectly normal.

OK, thanks Neil.

> > Anyway... it's not swapping, so I'm not that concerned, but I wondered if
> > it is normal behaviour for a webserver to run with near 100% memory usage?
> 
> One of mine:
> 
> top - 09:32:47 up 98 days, 23:55,  1 user,  load average: 0.04, 0.01, 0.00
> Cpu(s):  22.2% user,  77.8% system,   0.0% nice,   0.0% idle
> Mem:    252584k total,   248892k used,     3692k free,    27960k buffers
> 
> Probably just the cache.

And here's mine (probably would have been helpful to put this in my first post):

top - 10:44:23 up 17:55,  1 user,  load average: 0.01, 0.00, 0.00
Tasks:  50 total,   2 running,  48 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3% us,  0.0% sy,  0.0% ni, 99.7% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    255852k total,   236104k used,    19748k free,    34876k buffers
Swap:   369452k total,        0k used,   369452k free,    59204k cached

Grant.
-- 
Unix:  Some say the learning curve is steep, but you only have to climb it once.

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html