Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Lots of calls, less memory


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
Justin.Sherrill at ame...
Guest





PostPosted: Mon Feb 10, 2014 9:35 am    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been fine for some time now. But! We've got such a incoming call volume over the few weeks that we'll have Asterisk occasionally restart itself. My hunch is that it is in part memory pressure.

I can't add RAM and have it help, because it's 32-bit. I intend to move to a 64-bit machine, but I was hoping to wait until summer. Does anyone have any immediate tips for dealing with this sort of rush?

Justin Sherrill - American Rock Salt
P: 585-991-6825 F: 585-991-6925



--
_____________________________________________________________________
-- 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
Back to top
ispbuilder at gmail.com
Guest





PostPosted: Mon Feb 10, 2014 9:44 am    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

On 14-02-10 10:37 AM, Justin Sherrill wrote:
Quote:
We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been fine for some time now. But! We've got such a incoming call volume over the few weeks that we'll have Asterisk occasionally restart itself. My hunch is that it is in part memory pressure.


What log entries are leading you to think that you're running out of RAM?

--
Looking for (employment|contract) work in the
Internet industry, preferably working remotely.
Building / Supporting the net since 2400 baud was
the hot thing. Ask for a resume! ispbuilder@gmail.com


--
_____________________________________________________________________
-- 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
Back to top
Justin.Sherrill at ame...
Guest





PostPosted: Mon Feb 10, 2014 10:26 am    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

On 14-02-10 9:46 AM, Mike wrote:
Quote:
What log entries are leading you to think that you're running out of RAM?

None. It's just my guess. The log doesn't show anything except Asterisk restarting.


--
_____________________________________________________________________
-- 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
Back to top
asterisk at voipbusine...
Guest





PostPosted: Mon Feb 10, 2014 10:38 am    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

Rather than speculate, take a look at the output of "top". If you're
running out of memory, shut down useless processes. You'd be surprised what
processes get started by default that you don't need. You should also check
the Asterisk logs and look at the last few things Asterisk did right before
it restarted. You may also want to consider not loading Asterisk modules
that you are never going to use. Just a suggestion.
Regards;
John


-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Justin
Sherrill
Sent: Monday, February 10, 2014 10:27 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Lots of calls, less memory

On 14-02-10 9:46 AM, Mike wrote:
Quote:
What log entries are leading you to think that you're running out of RAM?

None. It's just my guess. The log doesn't show anything except Asterisk
restarting.


--
_____________________________________________________________________
-- 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
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Mon Feb 10, 2014 12:54 pm    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

On Mon, 10 Feb 2014, Justin Sherrill wrote:

Quote:
We're running Asterisk 1.8 on a 32-bit Debian machine, and it has been
fine for some time now. But! We've got such a incoming call volume
over the few weeks that we'll have Asterisk occasionally restart itself.
My hunch is that it is in part memory pressure.

I'm a 1.2 Luddite, but...

I suspect it's not RAM.

I have a CentOS 32bit box with 2GB that has 350 calls right now (last
night's peak was 420), most in meetme conferences.

How many concurrent calls are you handling?

How much RAM is Asterisk consuming on your box?

Any obese AGIs? I run tons of AGIs, but I write them in C.

Does 'vmstat 5' show swapping?

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- 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
Back to top
Justin.Sherrill at ame...
Guest





PostPosted: Mon Feb 10, 2014 1:47 pm    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

To follow up the discussion - yeah, it's not RAM, or at least not directly. I'm so used to looking in the asterisk logs I didn't think to look at /var/log/messages:

Feb 10 09:10:45 telephone-retsof kernel: [35734.705648] asterisk[11215]: segfault at ffa2048e ip b70a3def sp b540a000 error 4 in libpri.so.1.4[b708b000+47000]

We are slightly behind the current libpri release.

--
_____________________________________________________________________
-- 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
Back to top
asterisk at a-domani.nl
Guest





PostPosted: Mon Feb 10, 2014 5:10 pm    Post subject: [asterisk-users] Lots of calls, less memory Reply with quote

On Mon, 2014-02-10 at 10:39 -0500, Tech Support wrote:
Quote:
Rather than speculate, take a look at the output of "top". If you're
running out of memory, shut down useless processes. You'd be surprised what
processes get started by default that you don't need. You should also check
the Asterisk logs and look at the last few things Asterisk did right before
it restarted. You may also want to consider not loading Asterisk modules
that you are never going to use. Just a suggestion.
Regards;
John


-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Justin
Sherrill
Sent: Monday, February 10, 2014 10:27 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Lots of calls, less memory

On 14-02-10 9:46 AM, Mike wrote:
Quote:
What log entries are leading you to think that you're running out of RAM?

None. It's just my guess. The log doesn't show anything except Asterisk
restarting.

how about running "free" or "vmstat" inside cron every hour or so?
If you do a "vmstat 1 10" each hour on the hour, it tells you 10 times
with one second interval the amount of mem you got.
If you do that within cron, you can see the difference during a couple
of days.

Running out of mem, will cause unexpected results (to be found in
syslog), though rebooting should not be one of them.

for unintended reboots there are a lot of hardware related causes though
Some are easier to detect (like high temp) some are harder.
My most favorite is a moron-co-worker, touching sensative parts (cpu,
mem, mobo) with his ESD-unprotected hands. Problems might show up even
after months or years after the crime has been commited.

hw





--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services