Re: [Nolug] Redhat 9 server eating ram like candy...

From: Jeff Lee <jeffreydavidlee_at_hotmail.com>
Date: Wed, 24 Mar 2004 17:35:13 +0000
Message-ID: <BAY13-F40X0Y9gRWcyv00017763@hotmail.com>

Swap never seems to be used... I let lmstat 1 run for a little while and I
did not see the swapin and out leave 0. The reason I am concerned about the
memory usuage is because sometimes the server runs very slow.. even if all I
am using is ssh to connect to it it will freeze up when the memory usage is
high. Both connections are high (t1 and oc3) so I dont think that would be
an issue. Could booting to a different kernel help?

>From: -ray <ray@ops.selu.edu>
>Reply-To: nolug@joeykelly.net
>To: nolug@joeykelly.net
>Subject: Re: [Nolug] Redhat 9 server eating ram like candy...
>Date: Wed, 24 Mar 2004 10:54:37 -0600 (CST)
>
>
>Linux aggressively uses extra memory as file cache. Free memory just
>sitting out there is basically useless, so linux uses it to cache recently
>accessed files. This dramatically reduces disk i/o...you definitely want
>this.
>
>As a result your memory will keep increasing and never go down. This is
>not a bad thing... if you really want to see this in action do a
>find / -exec cat {} \; > /dev/null
>and watch in top as your free memory goes down down...
>
>File cache memory is low priority... when a program needs memory, file
>cache is the first to go. Your box will start swapping when it's really
>out of memory. You should run 'vmstat 1' and watch the si and so (swap
>in, swap out)columns... You can also look at swap in top, but linux will
>always use a little swap. vmstat is one of the best tools to see what's
>really going on...
>
>ray
>
>
>On Wed, 24 Mar 2004, Jeff Lee wrote:
>
> > I have a redhat 9 server that keeps using up all of the ram until I
>reboot.
> > I rebooted last night and not it is back at 60%... by tonight it will be
>up
> > to 80-90%. I use top and see that the main processes - spamassassin
>apache
> > communigate clamav take up about 60~100mb of ram (the server has 1006mb)
>How
> > can I stop this from happening? I run top and I dont see any memory
>hogging
> > programs? What is taking all of my ram? The server is updated as much as
> > possible. I am running on kernel 2.4.20-19.9
> >
> > This is from top: (swap never goes up... like it doesnt get used much)
> >
> > Mem: 1030668k av, 642996k used, 387672k free, 0k shrd, 169708k
> > buff
> > 299524k actv, 20024k in_d, 21924k in_c
> > Swap: 262072k av, 840k used, 261232k free 107868k
> > cached
> >
> > 2472 root 15 0 32388 31M 1568 S 0.0 3.1 0:02 0 cgpsa
> > 2390 root 15 0 20564 20M 4784 S 0.0 1.9 0:10 0 rcd
> > 2237 root 16 0 12020 11M 568 S 0.0 1.1 0:05 0
>clamdexec
> > 2221 root 15 0 5756 4964 1688 S 0.0 0.4 0:01 0
>CGServer
>
>___________________
>Nolug mailing list
>nolug@nolug.org

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

___________________
Nolug mailing list
nolug@nolug.org
Received on 03/24/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST