[Asterisk-Users] PRI and Voicemail Memory increasing

Steven Critchfield critch at basesys.com
Wed Mar 3 13:48:21 MST 2004


On Wed, 2004-03-03 at 14:36, Robert Boardman wrote:
> Steven Critchfield wrote:
> 
> >On Wed, 2004-03-03 at 06:33, Robert Boardman wrote:
> >  
> >
> >>Hi,
> >>
> >>With the current CVS as of last night 20:00GMT
> >>
> >>I was testing a asterisk with the e100p card using a PRI analyzer to excerise
> >>the 30 channels over and over, just going directly to voice-mail.
> >>
> >>Basically, I don't know what is going on but every time a PRI channel is picked
> >>up about 8K memory is used, but it is never released, I ran the test for about
> >>four hours last night, and th server started with 100Mb usage, and after 4 hours
> >>the memory usage had climbed to 270Mb.
> >>
> >>After some research and a few changes this is my current observation
> >>
> >>1st Observation:
> >>After the memory leak was discovered I turned astmm on and recompiled *. The
> >>'show memory allocations' and 'show memory summary' commands did not
> >>indicate that any of the * internals were growing during the test run.
> >>
> >>2nd Observation:
> >>When I first boot the system (mod probes for zaptel and wct1xxp and * are run up
> >>from rc.local and there are no ISDN calls running) the memory is already leaking
> >>by 8Kb every few seconds. If I stop * and then restart it the "memory leak"
> >>stops until I start making ISDN calls...
> >>
> >>Does anyone have any advice to release the memory or stop the leak?
> >>    
> >>
> >
> >Where are you getting the values for the memory usage? Are you just
> >using the free memory on the system? 
> >  
> >
> yes, Im just really looking at TOP memory usage when asterisk is being 
> hammered by the pri analyzer
> 
> Is this just liunx using memory  for buffers and cache??

Probably. 8k every few seconds sounds exactly like cache and buffers.
Remember that until physical RAM is exhausted, buffers and cache will
grow to fill all RAM. 
-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list