[asterisk-users] restart asterisk daily

ast erisk asteriskbr99 at gmail.com
Wed Feb 13 09:18:16 CST 2008


So that´s why I´ve always get a red bar on home screen of the Trixbox?

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.

tks,






On Feb 13, 2008 12:51 PM, Atis Lezdins <atis at iq-labs.net> wrote:

> On 2/13/08, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> > On Wed, Feb 13, 2008 at 03:48:14PM +0800, Rilawich Ango wrote:
> > > Actually, I donno it is a memory leak or not.  I have a server only
> > > running asterisk.  As time goes by, the free memory shown in the top
> > > is decreased.  After I restart the asterisk, the free memory comes
> > > again.  That's why I wonder if regular restart asterisk is necessary.
> > > Use a crontab to restart asterisk is a way to do it but you have to
> > > maintain a crontab.  Is it possible to use logrotate instead?  Or
> > > other better way?
> >
> > tzafrir at frenkel:~$ free -m
> >              total       used       free     shared    buffers
> cached
> > Mem:           485        477          7          0          0
>  100
> > -/+ buffers/cache:        376        108
> > Swap:         1419        270       1149
> > tzafrir at frenkel:~$ top -b | head -n 5
> > top - 10:18:32 up 19 days, 14:38, 24 users,  load average: 0.08, 0.33,
> 0.21
> > Tasks: 166 total,   1 running, 163 sleeping,   2 stopped,   0 zombie
> > 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
> > Mem:    496648k total,   489044k used,     7604k free,       32k buffers
> > Swap:  1453840k total,   276740k used,  1177100k free,   103380k cached
> > tzafrir at frenkel:~$ ps aux | grep asterisk
> > asterisk  9559  0.0  2.5 474896 12892 ?        Ssl  Feb12   0:00
> /usr/sbin/asterisk -p -U asterisk
> >
> > Gee, I only have 7 MB free! I must reboot to free some memory! And that
> > Asterisk is using so much memory!
>
> Guys, don't start panic here. This is perfectly normal memory status
> for Linux. Linux automatically uses most free memory for disk cache,
> leaving only few megabytes, and frees disk cache as soon as any
> application requests. This has nothing to do with Asterisk.
>
> Regards,
> Atis
>
> >
> > In fact:
> > 1. The system has some 100MB of free memory. almost all of it is used
> > for caching and such.
> >
> > 2. Asterisk overcommits memory: it generally asks the kernel huge
> > ammounts of memory, but doesn't really try to use them. At least with
> > Linux such overcommits are not claimed at all.
> >
> > --
> >                Tzafrir Cohen
> > icq#16849755              jabber:tzafrir.cohen at xorcom.com
> > +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> > http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
>
> --
> Atis Lezdins
> VoIP Developer,
> IQ Labs Inc.
> atis at iq-labs.net
> Skype: atis.lezdins
> Cell Phone: +371 28806004
> Work phone: +1 800 7502835
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080213/3415af72/attachment.htm 


More information about the asterisk-users mailing list