So thatīs why Iīve always get a red bar on home screen of the Trixbox?<br><br>Phisical memory is always at top most use, near 100% (green bar turns red on high level of memory use), and below it there is Kernel / Application, Buffers, Cached memory uses.<br>
<br>tks,<br><br><br><br><br><br><br><div class="gmail_quote">On Feb 13, 2008 12:51 PM, Atis Lezdins <<a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 2/13/08, Tzafrir Cohen <<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a>> wrote:<br>> On Wed, Feb 13, 2008 at 03:48:14PM +0800, Rilawich Ango wrote:<br>> > Actually, I donno it is a memory leak or not. I have a server only<br>
> > running asterisk. As time goes by, the free memory shown in the top<br>> > is decreased. After I restart the asterisk, the free memory comes<br>> > again. That's why I wonder if regular restart asterisk is necessary.<br>
> > Use a crontab to restart asterisk is a way to do it but you have to<br>> > maintain a crontab. Is it possible to use logrotate instead? Or<br>> > other better way?<br>><br>> tzafrir@frenkel:~$ free -m<br>
> total used free shared buffers cached<br>> Mem: 485 477 7 0 0 100<br>> -/+ buffers/cache: 376 108<br>> Swap: 1419 270 1149<br>
> tzafrir@frenkel:~$ top -b | head -n 5<br>> top - 10:18:32 up 19 days, 14:38, 24 users, load average: 0.08, 0.33, 0.21<br>> Tasks: 166 total, 1 running, 163 sleeping, 2 stopped, 0 zombie<br>> Cpu(s): 1.1%us, 0.1%sy, 0.0%ni, 98.2%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st<br>
> Mem: 496648k total, 489044k used, 7604k free, 32k buffers<br>> Swap: 1453840k total, 276740k used, 1177100k free, 103380k cached<br>> tzafrir@frenkel:~$ ps aux | grep asterisk<br>> asterisk 9559 0.0 2.5 474896 12892 ? Ssl Feb12 0:00 /usr/sbin/asterisk -p -U asterisk<br>
><br>> Gee, I only have 7 MB free! I must reboot to free some memory! And that<br>> Asterisk is using so much memory!<br><br></div>Guys, don't start panic here. This is perfectly normal memory status<br>for Linux. Linux automatically uses most free memory for disk cache,<br>
leaving only few megabytes, and frees disk cache as soon as any<br>application requests. This has nothing to do with Asterisk.<br><br>Regards,<br><font color="#888888">Atis<br></font><div class="Ih2E3d"><br>><br>> In fact:<br>
> 1. The system has some 100MB of free memory. almost all of it is used<br>> for caching and such.<br>><br>> 2. Asterisk overcommits memory: it generally asks the kernel huge<br>> ammounts of memory, but doesn't really try to use them. At least with<br>
> Linux such overcommits are not claimed at all.<br>><br>> --<br>> Tzafrir Cohen<br>> icq#16849755 jabber:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
> +972-50-7952406 mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>> <a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a> <a href="http://iax:guest@local.xorcom.com/tzafrir" target="_blank">iax:guest@local.xorcom.com/tzafrir</a><br>
><br>> _______________________________________________<br>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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>><br><br><br></div>
--<br><div class="Ih2E3d">Atis Lezdins<br>VoIP Developer,<br>IQ Labs Inc.<br><a href="mailto:atis@iq-labs.net">atis@iq-labs.net</a><br>Skype: atis.lezdins<br>Cell Phone: +371 28806004<br>Work phone: +1 800 7502835<br><br>
_______________________________________________<br></div><div><div></div><div class="Wj3C7c">-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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>
</div></div></blockquote></div><br>