<font face="trebuchet ms,sans-serif">AFAIK:<br>Linux has a tendency to keep RAM filled up with any recently accessed progarm. To keep programs access fast enough, it never removes something from the memory, only replaces it, in case some program has more frequent access than the one already present in ram.<br>
<br>If your server isn't swapping.. things are okay.<br></font><br><div class="gmail_quote">On Thu, Mar 8, 2012 at 1:15 PM, Jonas Kellens <span dir="ltr"><<a href="mailto:jonas.kellens@telenet.be">jonas.kellens@telenet.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div text="#000000" bgcolor="#ffffff">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I notice that at the end of the day, after about 4000 calls have
passed my Asterisk-system, that the use of memory is very high and
stays that way untill a restart of Asterisk or a reboot of the
server.<br>
<br>
This is the situation at the end of the day :<br>
<br>
[root@sp asterisk]# free -m<br>
total used free shared buffers
cached<br>
Mem: 3923 1931 1992 0
268 1308<br>
-/+ buffers/cache: 353 3569<br>
Swap: 4031 0 4031<br>
<br>
So total of 3923</font><font face="Helvetica, Arial, sans-serif">
MB</font><font face="Helvetica, Arial, sans-serif">, where 1992</font><font face="Helvetica, Arial, sans-serif"> MB</font><font face="Helvetica, Arial, sans-serif"> is used and 1931</font><font face="Helvetica, Arial, sans-serif"> MB</font><font face="Helvetica, Arial, sans-serif"> still free.<br>
<br>
This memory never decreases and increases with every call that
passes my Asterisk system. After some more calls :<br>
<br>
[root@sp asterisk]# free -m<br>
total used free shared buffers
cached<br>
Mem: 3923 1934 1989 0
270 1309<br>
-/+ buffers/cache: 353 3569<br>
Swap: 4031 0 4031<br>
<br>
</font><font face="Helvetica, Arial, sans-serif"> So total of 3923</font><font face="Helvetica, Arial, sans-serif"> MB</font><font face="Helvetica, Arial, sans-serif">, where 1934</font><font face="Helvetica, Arial, sans-serif"> MB</font><font face="Helvetica, Arial, sans-serif"> is used and 1989</font><font face="Helvetica, Arial, sans-serif"> MB</font><font face="Helvetica, Arial, sans-serif"> still free.</font><font face="Helvetica, Arial, sans-serif"><br>
<br>
As I said, only a restart of Asterisk or reboot of the server can
decrease this value :<br>
<br>
[root@sp asterisk]# free -m<br>
total used free shared buffers
cached<br>
Mem: 3923 974 2948 0
150 524<br>
-/+ buffers/cache: 299 3624<br>
Swap: 4031 0 4031<br>
<br>
So total of 3923 MB, where 974 MB is used and 2948 MB still free.<br>
<br>
<br>
So why does this memory usage only decrease with a restart ? What
keeps asterisk stored in the RAM-memory ? Even if there are 0
calls, the memory does not decrease.<br>
<br>
<br>
<br>
Kind regards,<br><font color="#888888">
Jonas<br>
<br>
</font></font>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>