Re: [asterisk-users] restart asterisk daily
I have multiple queues in my case. Do you mean multiple queues is one of the reason to consume memory? How to only reset the queue stats? You will see asterisk behave its worst with multiple queues and heavy dialplan logic. I restart my boxes with queues everynight at midnight just to reset the queue stats displayed with show queue. ___ -- 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
Re: [asterisk-users] restart asterisk daily
If you want to flush your disk cache to see how much memory is being eaten cache pages, try this: echo 3 /proc/sys/vm/drop_caches - ast erisk [EMAIL PROTECTED] wrote: ___ -- 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 ___ -- 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
Re: [asterisk-users] restart asterisk daily
Always rely on free -m to see how much free memory you have not top. in terms of memory leak, i have asterisk running on servers with uptime of 400 days (CentOs), if there was any leak, i'm guessing i would have crashed server long time ago. On Thu, Feb 14, 2008 at 4:23 PM, Doug Bailey [EMAIL PROTECTED] wrote: If you want to flush your disk cache to see how much memory is being eaten cache pages, try this: echo 3 /proc/sys/vm/drop_caches - ast erisk [EMAIL PROTECTED] wrote: ___ -- 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 ___ -- 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 ___ -- 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
Re: [asterisk-users] restart asterisk daily
On Thu, Feb 14, 2008 at 8:38 PM, Al lists [EMAIL PROTECTED] wrote: Always rely on free -m to see how much free memory you have not top. You could install and use htop - it's a much more functional (and informative) version of top. It shows the difference between shared/buffer/cache memory. -erik ___ -- 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
Re: [asterisk-users] restart asterisk daily
Al lists wrote: Always rely on free -m to see how much free memory you have not top. in terms of memory leak, i have asterisk running on servers with uptime of 400 days (CentOs), if there was any leak, i'm guessing i would have crashed server long time ago. On Thu, Feb 14, 2008 at 4:23 PM, Doug Bailey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If you want to flush your disk cache to see how much memory is being eaten cache pages, try this: echo 3 /proc/sys/vm/drop_caches - ast erisk [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: ___ -- 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 ___ -- 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 ___ -- 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 You will see asterisk behave its worst with multiple queues and heavy dialplan logic. I restart my boxes with queues everynight at midnight just to reset the queue stats displayed with show queue. ___ -- 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
Re: [asterisk-users] restart asterisk daily
On Thu, Feb 14, 2008 at 09:32:04PM -0600, Erik Anderson wrote: On Thu, Feb 14, 2008 at 8:38 PM, Al lists [EMAIL PROTECTED] wrote: Always rely on free -m to see how much free memory you have not top. You could install and use htop - it's a much more functional (and informative) version of top. It shows the difference between shared/buffer/cache memory. It also consumes more CPU. -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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
Re: [asterisk-users] restart asterisk daily
On Thu, Feb 14, 2008 at 9:37 PM, Tzafrir Cohen [EMAIL PROTECTED] wrote: It also consumes more CPU. True, a fraction more. If you have that little overhead on your server, though, that this would cause a problem, you probably should upgrade your hardware, IMHO. -eriik ___ -- 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
Re: [asterisk-users] restart asterisk daily
On Feb 13, 2008 8:48 AM, Rilawich Ango [EMAIL PROTECTED] 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 I observed the same behavior. Someone told me that that's a normal feature of linux, it manages memory that way. If that's true, than it isn't normal to see the same (large) amount of free memory over time on a box running asterisk only. However, I rarely restart and it hasn't caused problems. Here's mine right now: 09:14:39 up 73 days, 18:47, 2 users, load average: 0.00, 0.00, 0.00 67 processes: 65 sleeping, 2 running, 0 zombie, 0 stopped CPU states: 0.1% user 3.9% system 0.0% nice 0.0% iowait 95.8% idle Mem: 515460k av, 509416k used,6044k free, 0k shrd, 80052k buff 152896k active, 191472k inactive Swap: 477248k av, 0k used, 477248k free 242404k cached 'course, these days, half a meg isn't much :) ___ -- 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
Re: [asterisk-users] restart asterisk daily
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? [EMAIL PROTECTED]:~$ free -m total used free sharedbuffers cached Mem: 485477 7 0 0100 -/+ buffers/cache:376108 Swap: 1419270 1149 [EMAIL PROTECTED]:~$ 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 [EMAIL PROTECTED]:~$ 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! 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:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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
Re: [asterisk-users] restart asterisk daily
On Wed, Feb 13, 2008 at 02:31:11PM +0100, randulo wrote: On Feb 13, 2008 9:29 AM, Tzafrir Cohen [EMAIL PROTECTED] wrote: Gee, I only have 7 MB free! I must reboot to free some memory! And that Asterisk is using so much memory! Do I detect a tiny bit of sarcasm here? Someone from Digium (or elsewhere) might be able to jump in and explain the asterisk memory strategy and why it doesn't have any detrimental effects on anything else running on the same system. Sarcastic indeed. Indeed all those assertions were false. Off-Topic: The big memory consumer I have on my system is $GECKO_BROWSER. I currently have iceape (seamonkey), after just one day of operation: tzafrir 8186 1.1 53.1 763016 264008 ? Ssl Feb12 19:23 /usr/lib/iceape/iceape-bin Iceweasel (firefox), epiphany and kazehakase don't seem to be much different. So I have no issues with the little copy of Asterisk on my desktop system... -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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
Re: [asterisk-users] restart asterisk daily
On Feb 13, 2008 9:29 AM, Tzafrir Cohen [EMAIL PROTECTED] wrote: Gee, I only have 7 MB free! I must reboot to free some memory! And that Asterisk is using so much memory! Do I detect a tiny bit of sarcasm here? Someone from Digium (or elsewhere) might be able to jump in and explain the asterisk memory strategy and why it doesn't have any detrimental effects on anything else running on the same system. ___ -- 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
Re: [asterisk-users] restart asterisk daily
On Wed, Feb 13, 2008 at 03:02:23PM +0100, Haan Patrick wrote: which distribution do you use? Maybe a Fedora 7 Debian Testing here. -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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
Re: [asterisk-users] restart asterisk daily
On 2/13/08, Tzafrir Cohen [EMAIL PROTECTED] 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? [EMAIL PROTECTED]:~$ free -m total used free sharedbuffers cached Mem: 485477 7 0 0100 -/+ buffers/cache:376108 Swap: 1419270 1149 [EMAIL PROTECTED]:~$ 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 [EMAIL PROTECTED]:~$ 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:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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. [EMAIL PROTECTED] 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
Re: [asterisk-users] restart asterisk daily
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 [EMAIL PROTECTED] wrote: On 2/13/08, Tzafrir Cohen [EMAIL PROTECTED] 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? [EMAIL PROTECTED]:~$ free -m total used free sharedbuffers cached Mem: 485477 7 0 0 100 -/+ buffers/cache:376108 Swap: 1419270 1149 [EMAIL PROTECTED]:~$ 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 [EMAIL PROTECTED]:~$ 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:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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. [EMAIL PROTECTED] 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 ___ -- 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
Re: [asterisk-users] restart asterisk daily
which distribution do you use? Maybe a Fedora 7 greez patrick -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Tzafrir Cohen Gesendet: Mittwoch, 13. Februar 2008 14:46 An: asterisk-users@lists.digium.com Betreff: Re: [asterisk-users] restart asterisk daily [senderbase] On Wed, Feb 13, 2008 at 02:31:11PM +0100, randulo wrote: On Feb 13, 2008 9:29 AM, Tzafrir Cohen [EMAIL PROTECTED] wrote: Gee, I only have 7 MB free! I must reboot to free some memory! And that Asterisk is using so much memory! Do I detect a tiny bit of sarcasm here? Someone from Digium (or elsewhere) might be able to jump in and explain the asterisk memory strategy and why it doesn't have any detrimental effects on anything else running on the same system. Sarcastic indeed. Indeed all those assertions were false. Off-Topic: The big memory consumer I have on my system is $GECKO_BROWSER. I currently have iceape (seamonkey), after just one day of operation: tzafrir 8186 1.1 53.1 763016 264008 ? Ssl Feb12 19:23 /usr/lib/iceape/iceape-bin Iceweasel (firefox), epiphany and kazehakase don't seem to be much different. So I have no issues with the little copy of Asterisk on my desktop system... -- Tzafrir Cohen icq#16849755 jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/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 ___ -- 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
Re: [asterisk-users] restart asterisk daily
Matt Riddell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rilawich Ango wrote: Hi all, I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? What makes you think there is a memory leak? I don't know about a memory leak, but I've found too that Asterisk benefits from a daily restart in all installations of any kind of serious scale that I've managed. This tends to improve application performance, mainly. Found this to be true of 1.2 and 1.4. Of course, I could be completely wrong -- I have no real way of knowing whether the solution corresponds genuinely underlying problem. -- Alex Balashov Evariste Systems Web: http://www.evaristesys.com/ Tel: (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (706) 338-8599 ___ -- 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
Re: [asterisk-users] restart asterisk daily
I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? Probably depends on the version of Asterisk, but I don't restart daily From one in production used daily with call recording, conference, etc : System uptime: 18 weeks, 5 days, 10 hours, 56 minutes, 37 seconds And the last reboot was because of a major power failure that lasted longer than the UPS could stand. The worst I've seen was a weekly restart of Asterisk, just to be on the safe side What version of Asterisk are you using ? ___ -- 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
Re: [asterisk-users] restart asterisk daily
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rilawich Ango wrote: Hi all, I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? What makes you think there is a memory leak? - -- Kind Regards, Matt Riddell Director ___ http://www.venturevoip.com (Great new VoIP end to end solution) http://www.venturevoip.com/news.php (Daily Asterisk News - html) http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHslNQDQNt8rg0Kp4RAh5TAJ4kchdwiQwLA17fvmHa+W2mBlpRgACghVR2 1UPovp9lK+YedT1OX75b1Mc= =/VlE -END PGP SIGNATURE- ___ -- 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
[asterisk-users] restart asterisk daily
Hi all, I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? ango ___ -- 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
Re: [asterisk-users] restart asterisk daily
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? On Feb 13, 2008 3:26 PM, Atis Lezdins [EMAIL PROTECTED] wrote: On 2/13/08, Rilawich Ango [EMAIL PROTECTED] wrote: Hi all, I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? ango I have cron script that restarts daily by /etc/init.d/asterisk restart - that way asterisk is completely stopped and then started again. Long ago, for 1.2 this was helping to reduce crashes on working time. Anyway - i prefer to restart if i have some inactivity time anyway, rather than have a small chance that it will crash while lot's of calls are going trough. So, if you have timeframe when you know for sure that there won't be any calls, you can restart by initscript. Otherwise, if you have low call volume in night-time, you may modify safe_asterisk script to start asterisk anyway (even if it returns ok exit stats that means shutdown), and then stop asterisk by stop when convenient) Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. [EMAIL PROTECTED] 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 ___ -- 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
Re: [asterisk-users] restart asterisk daily
On 2/13/08, Rilawich Ango [EMAIL PROTECTED] wrote: Hi all, I found that there will be a memory leak if asterisk running day by day without restart. Is it good to restart asterisk service daily? What is the better way to restart it daily like apache? ango I have cron script that restarts daily by /etc/init.d/asterisk restart - that way asterisk is completely stopped and then started again. Long ago, for 1.2 this was helping to reduce crashes on working time. Anyway - i prefer to restart if i have some inactivity time anyway, rather than have a small chance that it will crash while lot's of calls are going trough. So, if you have timeframe when you know for sure that there won't be any calls, you can restart by initscript. Otherwise, if you have low call volume in night-time, you may modify safe_asterisk script to start asterisk anyway (even if it returns ok exit stats that means shutdown), and then stop asterisk by stop when convenient) Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. [EMAIL PROTECTED] 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