Re: [PHP4BETA] Where does my memory go?
| From: | Lars Torben Wilson | Date: | Thu, 16 Mar 2000 19:45:03 +0000 |
| Subject: | Re: [PHP4BETA] Where does my memory go? | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12280@lists.php.net to get a copy of this message | ||
Lars Torben Wilson writes:
> Alex zhang writes:
> > Hi,there
> > I have one server(Linux6.0+Apache+PHP+Mysql).
> > First I have 256M memory(from "top" result), then
> > after a few days, it just 3M memory left, then always
> > about 3M .If I reboot the computer, it changed to
> > 256M.
> > But I can see it reduce little by little, then about
> > 3M
> > again. I have about 128M swap.And I want to know the
> > reason for that.
> >
> > Thanx in advance
> >
> >
> > alex
>
> Are you referring to the amount of memory reported by 'free', or are
God I hate following up to myself. :) I meant "the amount of memory
reported _as_ 'free'", as opposed to taking the sum of all the httpd
processes (which maybe could indicate an httpd/PHP problem).
> you talking about the amount of memory taken up by your webserver
> processes? In the first case, it's a fairly common Linux question and
> the answer is in the Linux FAQ:
>
> http://www.linuxdoc.org/FAQ/Linux-FAQ-7.html#ss7.6
>
> The ``free'' figure printed by free doesn't include memory used as a
> disk buffer cache--shown in the ``buffers'' column. If you want to
> know how much memory is really free add the ``buffers'' amount to
> ``free''--newer versions of free print an extra line with this info.
>
> The disk buffer cache tends to grow soon after starting Linux up. As
> you load more programs and use more files, the contents get
> cached. It will stabilize after a while.
>
> Sorry if this isn't actually the problem.
>
>
> Cheers,
>
> Torben
--
+----------------------------------------------------------------+
|Torben Wilson <torben@php.net> Netmill iTech|
|http://www.coastnet.com/~torben http://www.netmill.fi|
|Ph: 1 250 383-9735 torben@netmill.fi|
+----------------------------------------------------------------+