Feature #71

Patch Freeswitch memory leak

Added by lee almost 6 years ago. Updated almost 5 years ago.

Status:ClosedStart date:04/12/2012
Priority:NormalDue date:
Assignee:lee% Done:


Category:-Spent time:-
Target version:OSTel Operations


Freeswitch requests 4 bytes of active memory every 10 - 15 seconds and never marks it inactive. This doesn't map to the usage of the server, which is almost nothing. This looks like a memory leak.

I'm running FS in Valgrind to generate a log of memory usage over the next few days. I have a FS developer who will help me identify the problem.


#1 Updated by n8fr8 over 5 years ago

Any progress on this? Was it indeed linked to music playback?

Is there any increase to the leak as we have added users or activity?

#2 Updated by lee over 5 years ago

It was not linked to music playback. It was linked to SIP TLS.


The above bug has the attention of the developer of mod_sofia, the module in question. He claims to have fixed it and I've rebuilt from today's git. I'll keep my eye on it and see in a couple of days.

#3 Updated by lee over 5 years ago

The SIP maintainer broke ALL SOUND sometimes last week. I'm in the process to help him fix this problem with git bisect feature so we can find the commit that broke sound.

#4 Updated by lee over 5 years ago

  • % Done changed from 0 to 50

Rather than hunting down a leak myself I'm installing monit to supervise and restart FS. http://mmonit.com/monit/

#5 Updated by lee over 5 years ago

  • Priority changed from Urgent to Normal
  • Target version changed from Alpha Testbed - Update 1 to OSTel Operations

#6 Updated by lee over 5 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 80

monit installed and configured.

#7 Updated by lee almost 5 years ago

  • Status changed from Resolved to Closed

moving to Kamailio

Also available in: Atom PDF