valgrind is your best bet:
valgrind --tool=memcheck --log-file=vg.log --leak-check=full --leak-resolution=high --show-reachable=yes /usr/local/freeswitch/bin/freeswitch -vg
run this on normal traffic for a while and get the log file.
if you unload mods it would not help with a leak but it would with a swelling pool.
Hello,
I'm experiencing what I think is a memory leak in a production system
with a recent git (2-Nov), with FS consuming >5GB and increasing after a
few days with never more than 10 calls at once.
While the users are not experiencing problems so far, I'm a bit worried.
So I have a few questions:
- How can I be sure it's a leak and not some memory pool thing that FS
would free when the system needs (system has 10GB total)?
- If I unload modules one by one, is the memory used by this module
freed immediately?
- What would be a "good" way to try and narrow down the cause? Is
valgrind a good tool for that?
Of course I'll try with GIT HEAD and try my best to find the cause
before considering to add a new Jira issue, otherwise it's quite
useless.
Thanks,
François.
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-dev mailing list
FreeSWITCH-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org