Subject: Re: Excessive swapping / Memory problems
To: Vincent van Scherpenseel <email@example.com>
From: Quentin Garnier <firstname.lastname@example.org>
Date: 09/07/2006 00:42:57
Content-Type: text/plain; charset=us-ascii
On Wed, Sep 06, 2006 at 10:55:31PM +0200, Vincent van Scherpenseel wrote:
> Chuck Swiger wrote:
> >On Sep 6, 2006, at 12:40 PM, Vincent van Scherpenseel wrote:
> >>>"top -o size" will show you which processes are requiring lots of=20
> >>>memory; it's possible that one of them is leaking, or it may simply=20
> >>>be that you are trying to run too much on a machine with limited=20
> >>>RAM. Increasing the amount of RAM in your machine is probably going=
> >>>to improve the performance of the system significantly...
> >>The strange thing is that it's a very low loaded machine, only running=
> >>an SMTP server for my daily mail (about 50 messages a day) and a=20
> >>webserver for my personal website (http://vincent.vanscherpenseel.nl).=
> >>Most of the visitors are spambots targeting the blog comment system (I=
> >>really need to implement a CAPTCHA check, I know).
> >>Here is the top output of top -o size:
> >> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU=20
> >> 9747 www -4 0 35M 4K semwait 0:32 0.00% 0.00% httpd
> >[ ... ]
> >Ah, eight to ten 35MB apache children will consume most or all of your=
> >RAM and swap space.
> >Apache normally uses a lot less; a stock Apache-1 without anything=20
> >expensive will take 5-8MB, and even Apache-2 + mod_perl or PHP takes=20
> >around 15 - 20MB; perhaps you can reduce the max # of children running=
> >or remove a module or two that is bumping your memory usage up so much...
> Yes, but how does it come that it's taking 35megabytes? I'm running=20
> Apache2 with PHP. I never had these problems. Like I said: I hardly ever=
> get any visitors so I could probably reduce the number of childs.=20
> However, I find it rather strange that these problems suddenly occur.
I've seen some scripts make the PHP module leak memory _very_ fast.
I have witnessed similar trouble on a machine of mine once (a sparc64).
Quentin Garnier - email@example.com - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
-----END PGP SIGNATURE-----