Re: [asterisk-users] Base memory usage

2011-01-02 Thread Steve Edwards

On Sat, 1 Jan 2011 13:04:29 -0500, Robert Fantini
robertfant...@gmail.com wrote:

did you check :
/var/log/asterisk/full


On Sat, 1 Jan 2011, Gilles wrote:

Yup, but this file doesn't exist. It's an appliance with not much 
RAM/NAND memory, so it makes sense to disable logging to save space.


1) Configure Asterisk to syslog on another host.

2) Start Asterisk from the command line with lots of '-d' and '-v' and 
watch for error messages.


Personally, I prefer to use 'autoload=no' and explicitly load the modules 
I need on production systems.


--
Thanks in advance,
-
Steve Edwards   sedwa...@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


Re: [asterisk-users] Base memory usage

2011-01-02 Thread Gilles
On Sun, 2 Jan 2011 10:04:44 -0800 (PST), Steve Edwards
asterisk@sedwards.com wrote:
Personally, I prefer to use 'autoload=no' and explicitly load the modules 
I need on production systems.

Thanks Steve.


--
_
-- 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] Base memory usage

2011-01-01 Thread Gilles
On Fri, 31 Dec 2010 08:11:18 -0600, Danny Nicholas
da...@debsinc.com wrote:
Incidently, is there a sure-fire way (eg. checking error messages in
Asterisk's log file) to know which modules a given Asterisk setup
needs, so we can safely not load unneeded modules?

Check /var/log/asterisk/full from your last 1.6 startup.  The list of
modules from there should be what you need in 1.8.

Thanks for the tip. The appliance doesn't log messages in ./full, but
I'll check how to enable it.


--
_
-- 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] Base memory usage

2011-01-01 Thread Robert Fantini
did you check :
 /var/log/asterisk/full

On Sat, Jan 1, 2011 at 12:30 PM, Gilles codecompl...@free.fr wrote:

 On Fri, 31 Dec 2010 08:11:18 -0600, Danny Nicholas
 da...@debsinc.com wrote:
 Incidently, is there a sure-fire way (eg. checking error messages in
 Asterisk's log file) to know which modules a given Asterisk setup
 needs, so we can safely not load unneeded modules?
 
 Check /var/log/asterisk/full from your last 1.6 startup.  The list of
 modules from there should be what you need in 1.8.

 Thanks for the tip. The appliance doesn't log messages in ./full, but
 I'll check how to enable it.


 --
 _
 -- 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] Base memory usage

2011-01-01 Thread Gilles
On Sat, 1 Jan 2011 13:04:29 -0500, Robert Fantini
robertfant...@gmail.com wrote:
did you check :
 /var/log/asterisk/full

Yup, but this file doesn't exist. It's an appliance with not much
RAM/NAND memory, so it makes sense to disable logging to save space.


--
_
-- 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] Base memory usage

2010-12-31 Thread Gilles
On Thu, 30 Dec 2010 23:53:04 -0500, Jeremy Kister
asterisk...@jeremykister.com wrote:
I've got just about everything turned on via menuselect, but then i have 
a bunch of modules turned off via modules.conf

Incidently, is there a sure-fire way (eg. checking error messages in
Asterisk's log file) to know which modules a given Asterisk setup
needs, so we can safely not load unneeded modules?


--
_
-- 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] Base memory usage

2010-12-31 Thread Larry Wimble

Jeremy Kister wrote:

On 12/30/2010 9:59 PM, Larry Wimble wrote:

I just installed asterisk 1.8.1.1 along with FreePBX on a fairly small
VPS (512mb standard, 512mb burst).  I note that the asterisk process
is using about 209mb of memory just doing nothing (not configured to do
anything yet)


I'm running 1.8.1 rc1 + some patches (nothing to do with memory) and 
i'm at 42MB resident (73 virt/8shared)


I've got just about everything turned on via menuselect, but then i 
have a bunch of modules turned off via modules.conf


I doubt that's your issue, but if you're interested to see my 
modules.conf, it's temporarily at 
http://jeremy.kister.net/tmp/modules.conf



Thanks a bunch guys!

I pruned the modules loading and that did the job, although I found 
something interesting in doing so:


Removing modules one by one seemed to have virtually no effect until I 
got to chan_iax2.so.  Removing this module dropped memory consumption 
from 209mb to 16mb (looking at the RES column in the output of `top'). 


Once again, thanks for your suggestions ... Works like a charm!

Kind Regards,
Larry






--
_
-- 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] Base memory usage

2010-12-31 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles
Sent: Friday, December 31, 2010 3:21 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] Base memory usage

On Thu, 30 Dec 2010 23:53:04 -0500, Jeremy Kister
asterisk...@jeremykister.com wrote:
I've got just about everything turned on via menuselect, but then i have 
a bunch of modules turned off via modules.conf

Incidently, is there a sure-fire way (eg. checking error messages in
Asterisk's log file) to know which modules a given Asterisk setup
needs, so we can safely not load unneeded modules?

Check /var/log/asterisk/full from your last 1.6 startup.  The list of
modules from there should be what you need in 1.8.


--
_
-- 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] Base memory usage

2010-12-31 Thread Danny Nicholas
-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Larry Wimble
Sent: Friday, December 31, 2010 8:11 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Base memory usage

Jeremy Kister wrote:
 On 12/30/2010 9:59 PM, Larry Wimble wrote:
 I just installed asterisk 1.8.1.1 along with FreePBX on a fairly small
 VPS (512mb standard, 512mb burst).  I note that the asterisk process
 is using about 209mb of memory just doing nothing (not configured to do
 anything yet)

 I'm running 1.8.1 rc1 + some patches (nothing to do with memory) and 
 i'm at 42MB resident (73 virt/8shared)

 I've got just about everything turned on via menuselect, but then i 
 have a bunch of modules turned off via modules.conf

 I doubt that's your issue, but if you're interested to see my 
 modules.conf, it's temporarily at 
 http://jeremy.kister.net/tmp/modules.conf

Thanks a bunch guys!

I pruned the modules loading and that did the job, although I found 
something interesting in doing so:

Removing modules one by one seemed to have virtually no effect until I 
got to chan_iax2.so.  Removing this module dropped memory consumption 
from 209mb to 16mb (looking at the RES column in the output of `top'). 

Once again, thanks for your suggestions ... Works like a charm!

Kind Regards,
Larry

Here is a future timesaver - use this command to see what is eating the
asterisk memory before you start removing stuff:
Pmap -d `pgrep asterisk`

This will run a pmap on the active asterisk process 




--
_
-- 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] Base memory usage

2010-12-31 Thread Jeremy Kister

On 12/31/2010 9:11 AM, Larry Wimble wrote:

Removing modules one by one seemed to have virtually no effect until I
got to chan_iax2.so.  Removing this module dropped memory consumption
from 209mb to 16mb (looking at the RES column in the output of `top').


Apparently, it's a known issue: 
https://issues.asterisk.org/view.php?id=18194




--

Jeremy Kister
http://jeremy.kister.net./

--
_
-- 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


[asterisk-users] Base memory usage

2010-12-30 Thread Larry Wimble


Asterisk gurus

I just installed asterisk 1.8.1.1 along with FreePBX on a fairly small 
VPS (512mb standard, 512mb burst).  I note that the asterisk process 
is using about 209mb of memory just doing nothing (not configured to do 
anything yet)


In contrast to this, my 1.6.1.2 installation from a little over a year 
ago uses only 40mb and it's fully configured and running with about 4 
months of uptime (2 trunks, 4 channels, 3 DIDs, and 4 extensions.)


Any ideas on how I can get the memory consumption down on my new 
installation, or is it time to downgrade to the older version?


Thanks,
Larry






--
_
-- 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] Base memory usage

2010-12-30 Thread Faisal Hanif

Hi,

1-TuneUp your setting in /etc/dafult/asterisk
2-Stop l;oadng all not required modules by adding noload = 
modulename.so  lines to /etc/asterisk/modules.conf


Regards,

Faisal

On 12/31/2010 7:59 AM, Larry Wimble wrote:


Asterisk gurus

I just installed asterisk 1.8.1.1 along with FreePBX on a fairly small 
VPS (512mb standard, 512mb burst).  I note that the asterisk process 
is using about 209mb of memory just doing nothing (not configured to 
do anything yet)


In contrast to this, my 1.6.1.2 installation from a little over a year 
ago uses only 40mb and it's fully configured and running with about 4 
months of uptime (2 trunks, 4 channels, 3 DIDs, and 4 extensions.)


Any ideas on how I can get the memory consumption down on my new 
installation, or is it time to downgrade to the older version?


Thanks,
Larry






--
_
-- 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] Base memory usage

2010-12-30 Thread Jeremy Kister

On 12/30/2010 9:59 PM, Larry Wimble wrote:

I just installed asterisk 1.8.1.1 along with FreePBX on a fairly small
VPS (512mb standard, 512mb burst).  I note that the asterisk process
is using about 209mb of memory just doing nothing (not configured to do
anything yet)


I'm running 1.8.1 rc1 + some patches (nothing to do with memory) and i'm 
at 42MB resident (73 virt/8shared)


I've got just about everything turned on via menuselect, but then i have 
a bunch of modules turned off via modules.conf


I doubt that's your issue, but if you're interested to see my 
modules.conf, it's temporarily at http://jeremy.kister.net/tmp/modules.conf


--

Jeremy Kister
http://jeremy.kister.net./

--
_
-- 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