[Freeswitch-users] Possible memory / cpu leak

Chris Fowler chris at fowler.cc
Mon Mar 16 21:01:10 PDT 2009


>> Brian: Can you update to SVN trunk as of now?
I updated - version reports: FreeSWITCH Version 1.0.trunk (12631)

Only difference I note with this build is that upon "shutdown" FS now
SegFaults.  The mem/cpu usage continues to slowly climb.

<snip>
2009-03-16 20:59:32 [CONSOLE] switch_loadable_module.c:1237
do_shutdown() Stopping: mod_spidermonkey
Segmentation fault (core dumped)



>> Anthony - nothing special is a bit vague. 
I modified the dial plan to accept extension in the 1000-1029 range
Added DialByLast name using directory.lua (from the wiki)
Modified the ivr config to play company specific greetings
Voicemail is used a few times per day


freeswitch at ip-10-250-155-18> sofia status
API CALL [sofia(status)] output:
                     Name          Type                              
                     Data      State
=================================================================================================
                 internal       profile  
                 sip:mod_sofia at xxx.xxx.xxx.xx:5060     RUNNING (0)
                 external       profile  
                 sip:mod_sofia at xxx.xxx.xxx.xx:5080     RUNNING (0)
        sip.flowroute.com       gateway     sip:xxxxxx at sip.flowroute.com
             REGED
                 inphonex       gateway       sip:xxxxx at sip.inphonex.com
                      REGED
callwithus-did-xxxxxxxxxx       gateway  
sip:xxxxxxx at east.callwithus.com     REGED
callwithus-did-xxxxxxxxxx       gateway  
sip:xxxxxxx at east.callwithus.com     REGED
callwithus-did-xxxxxxxxxx       gateway  
sip:xxxxxxx at east.callwithus.com     REGED
                  default         alias                          
                  internal      ALIASED
                      nat         alias                          
                      external      ALIASED
         xxxxx.bbbb.aaa         alias                           internal
              ALIASED
                 outbound         alias                          
                 external      ALIASED
=================================================================================================



>> Anthony - valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /path/to/freeswitch -vg


Nothing got logged, here's the output.  Did I invoke valgrind
incorrectly?

==32545== Memcheck, a memory error detector.
==32545== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et
al.
==32545== Using LibVEX rev 1658, a library for dynamic binary
translation.
==32545== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==32545== Using valgrind-3.2.1, a dynamic binary instrumentation
framework.
==32545== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et
al.
==32545== For more details, rerun with: -v
==32545== 
==32545== My PID = 32545, parent PID = 32511.  Prog and args are:
==32545==    /usr/local/freeswitch/bin/freeswitch
==32545==    -vg
==32545== 




More information about the FreeSWITCH-users mailing list