[asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread satish patel

Hi Guys!

This is strange issue with 1.8 I have restarted my asterisk and it destroy all 
registered SIP peers now only solution is i manually reboot all phones to get 
them register back. I have never seen issue like this before. Any idea what 
would be the issue ?

Thanks
S
  --
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread Mark Deneen
On Fri, May 20, 2011 at 2:10 PM, satish patel satish...@hotmail.com wrote:

  Hi Guys!

 This is strange issue with 1.8 I have restarted my asterisk and it destroy
 all registered SIP peers now only solution is i manually reboot all phones
 to get them register back. I have never seen issue like this before. Any
 idea what would be the issue ?

 Thanks
 S


Shouldn't the phones re-register on their own?  Mine do it every few
minutes.

-M
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread satish patel

We have polycom 501 and i am waiting since last 5 min no registration require 
appear. 

-S

From: mden...@gmail.com
Date: Fri, 20 May 2011 14:56:20 -0400
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Restart asterisk destroy all registered SIP   
peers



On Fri, May 20, 2011 at 2:10 PM, satish patel satish...@hotmail.com wrote:







Hi Guys!

This is strange issue with 1.8 I have restarted my asterisk and it destroy all 
registered SIP peers now only solution is i manually reboot all phones to get 
them register back. I have never seen issue like this before. Any idea what 
would be the issue ?



Thanks
S
Shouldn't the phones re-register on their own?  Mine do it every few minutes.
-M 

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread Mark Deneen
On Fri, May 20, 2011 at 3:00 PM, satish patel satish...@hotmail.com wrote:

  We have polycom 501 and i am waiting since last 5 min no registration
 require appear.

 -S


With Polycom 321 you can poke around the menus -- one of them has a
countdown timer which will show you when the next registration happens.

-M
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread satish patel

Issue is we are running customer support queue and if by chance if i need to 
restart asterisk then they will not able to get call until phone get register 
:(  Let me check polycom default timeout and set to min.

-S

From: mden...@gmail.com
Date: Fri, 20 May 2011 15:03:35 -0400
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Restart asterisk destroy all registered SIP   
peers



On Fri, May 20, 2011 at 3:00 PM, satish patel satish...@hotmail.com wrote:







We have polycom 501 and i am waiting since last 5 min no registration require 
appear. 

-S


With Polycom 321 you can poke around the menus -- one of them has a countdown 
timer which will show you when the next registration happens.


-M 

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread Eric Wieling


 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
 satish patel
 Sent: Friday, May 20, 2011 3:10 PM
 To: asterisk-users
 Subject: Re: [asterisk-users] Restart asterisk destroy all
 registered SIP peers

 Issue is we are running customer support queue and if by
 chance if i need to restart asterisk then they will not able
 to get call until phone get register :(  Let me check polycom
 default timeout and set to min.

Asterisk should cache the registrations across a restart and reboot.  I belive 
this feature was added in 1.4.

You should not need to set a low registration timeout.  If you set it because 
of NAT issues, setting qualify=yes will keep the translations open.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread satish patel

Hey Eric,

I do have qualify=yes. Am i missing something ?

[seb-exten](!)  ; Template
type=friend
host=dynamic
context=from-sip
qualify=yes
dtmfmode=rfc2833
nat=no
cc_agent_policy=generic
cc_monitor_policy=generic

[7022](seb-exten)
callerid=Rover Conference 7022
accountcode=Rover Conference
mailbox=7022@default

[7023](seb-exten)
callerid=Faire Conference 7023
accountcode=Faire Conference
mailbox=7023@default



 From: ewiel...@nyigc.com
 To: asterisk-users@lists.digium.com
 Date: Fri, 20 May 2011 15:15:45 -0400
 Subject: Re: [asterisk-users] Restart asterisk destroy all registered SIP 
 peers
 
 
 
  -Original Message-
  From: asterisk-users-boun...@lists.digium.com
  [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
  satish patel
  Sent: Friday, May 20, 2011 3:10 PM
  To: asterisk-users
  Subject: Re: [asterisk-users] Restart asterisk destroy all
  registered SIP peers
 
  Issue is we are running customer support queue and if by
  chance if i need to restart asterisk then they will not able
  to get call until phone get register :(  Let me check polycom
  default timeout and set to min.
 
 Asterisk should cache the registrations across a restart and reboot.  I 
 belive this feature was added in 1.4.
 
 You should not need to set a low registration timeout.  If you set it because 
 of NAT issues, setting qualify=yes will keep the translations open.
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 
 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Restart asterisk destroy all registered SIP peers

2011-05-20 Thread Satish Patel

There is a fix https://issues.asterisk.org/view.php?id=19318

--
Sent from my iPhone

On May 20, 2011, at 4:40 PM, satish patel satish...@hotmail.com wrote:


Hey Eric,

I do have qualify=yes. Am i missing something ?

[seb-exten](!)  ; Template
type=friend
host=dynamic
context=from-sip
qualify=yes
dtmfmode=rfc2833
nat=no
cc_agent_policy=generic
cc_monitor_policy=generic

[7022](seb-exten)
callerid=Rover Conference 7022
accountcode=Rover Conference
mailbox=7022@default

[7023](seb-exten)
callerid=Faire Conference 7023
accountcode=Faire Conference
mailbox=7023@default



 From: ewiel...@nyigc.com
 To: asterisk-users@lists.digium.com
 Date: Fri, 20 May 2011 15:15:45 -0400
 Subject: Re: [asterisk-users] Restart asterisk destroy all  
registered SIP peers




  -Original Message-
  From: asterisk-users-boun...@lists.digium.com
  [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of
  satish patel
  Sent: Friday, May 20, 2011 3:10 PM
  To: asterisk-users
  Subject: Re: [asterisk-users] Restart asterisk destroy all
  registered SIP peers
 
  Issue is we are running customer support queue and if by
  chance if i need to restart asterisk then they will not able
  to get call until phone get register :( Let me check polycom
  default timeout and set to min.

 Asterisk should cache the registrations across a restart and  
reboot. I belive this feature was added in 1.4.


 You should not need to set a low registration timeout. If you set  
it because of NAT issues, setting qualify=yes will keep the  
translations open.


 --
  
_
 -- Bandwidth and Colocation Provided by http://www.api-digital.com  
--
 New to Asterisk? Join us for a live introductory webinar every  
Thurs:

 http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] restart asterisk daily

2008-02-15 Thread Rilawich Ango
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

2008-02-14 Thread Doug Bailey
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

2008-02-14 Thread Al lists
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

2008-02-14 Thread Erik Anderson
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

2008-02-14 Thread Anthony Francis
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

2008-02-14 Thread Tzafrir Cohen
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

2008-02-14 Thread Erik Anderson
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

2008-02-13 Thread randulo
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

2008-02-13 Thread Tzafrir Cohen
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

2008-02-13 Thread Tzafrir Cohen
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

2008-02-13 Thread randulo
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

2008-02-13 Thread Tzafrir Cohen
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

2008-02-13 Thread Atis Lezdins
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

2008-02-13 Thread ast erisk
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

2008-02-13 Thread Haan Patrick
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

2008-02-12 Thread Alex Balashov
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

2008-02-12 Thread Marc Charbonneau
   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

2008-02-12 Thread Matt Riddell
-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

2008-02-12 Thread Rilawich Ango
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

2008-02-12 Thread Rilawich Ango
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

2008-02-12 Thread Atis Lezdins
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


[Asterisk-Users] Restart Asterisk

2004-04-08 Thread Jain, Sonal
Is it true that every time we make a change in the configuration file we need to 
restart the asterisk server. This will not be practical in the production environment. 
Thanks,
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Restart Asterisk

2004-04-08 Thread Thomas Gallaway
Jain, Sonal wrote:

Is it true that every time we make a change in the configuration file we need to restart the asterisk server. This will not be practical in the production environment. 
Thanks,
 

Entering reload in the console should do if you edit the extensions.conf 
and some other files. There are some files if you edit them you need to 
shut down and restart asterisk.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Restart Asterisk

2004-04-08 Thread Steve Foy
You can reload the config files with the 'reload' command in the CLI.

On Thu, Apr 08, 2004 at 09:48:57AM -0400, Jain, Sonal wrote:
 Is it true that every time we make a change in the configuration file we need to 
 restart the asterisk server. This will not be practical in the production 
 environment. 
 Thanks,
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Steve Foy|  http://www.unite.net
UNITE Solutions  |  Tel: 028 9077 7338 
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Restart Asterisk

2004-04-08 Thread WipeOut
Jain, Sonal wrote:

Is it true that every time we make a change in the configuration file we need to restart the asterisk server. This will not be practical in the production environment. 
Thanks,
 

No, you don't have to restart, you have to reload..

From the CLI just type reload and hit enter..
or for a command line run asterisk -rx reload..
Later..

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Restart Asterisk

2004-04-08 Thread Areski
Nop, just make a reload to load your new configuration and that will
not alter the current connections.


On Thu, 2004-04-08 at 15:48, Jain, Sonal wrote:
 Is it true that every time we make a change in the configuration file we need to 
 restart the asterisk server. This will not be practical in the production 
 environment. 
 Thanks,
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Restart Asterisk

2004-04-08 Thread Ryan Thrash
You should be able to do a reload, not having to restart (and bringing 
the system down).

On Apr 8, 2004, at 8:48 AM, Jain, Sonal wrote:

Is it true that every time we make a change in the configuration file 
we need to restart the asterisk server. This will not be practical in 
the production environment.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users