[Freeswitch-users] Perl script or ESL memory leaks, how to check?

Dmitry Sytchev kbdfck at gmail.com
Sat Mar 5 13:18:13 MSK 2011


Hi All,

I'm using Net::Server::Prefork togethere with perl ESL to listen for
outbound socket connections from Freeswitch in sync mode.
Due to use of Prefork, one script instance processes many requests
(max_requests).
I'm doing database request, finding user to dial and bridge.
I noticed that if channel hungs up by initiator, memory consumed by my
script is never returned to OS, but if bridge finished by remote side (or
freeswitch), memory returns to OS and everything works ok.

I thought there are some circular references in my script or something like
that, but that would affect both cases. In my case when call is finished by
freeswitch by reaching end of script and then end of dialplan, everything
works fine, but if call is finished by originating channel, memory leak
occurs.

How can I trace these leaks in my script or ESL library? What should I start
from?

-- 
Best regards,

Dmitry Sytchev,
IT Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110305/a88151f2/attachment.html 


More information about the FreeSWITCH-users mailing list