I had a similar issue with commit <span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">9cf44f3a5ee7cba9fc378447780499d41c4de671 of 6 July with a memory increase rate of 2Gb/day but now</span><span style="font-family:arial, sans-serif;border-collapse:collapse"> I have done a revert to an old commit (</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">2246f3ca75eee93a7e7f4409aa816513b99e657a) for a reason not related to the memory leak.</span><div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">For this reason I have not yet open a jira.</span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Due to a feature released recently, I'll do a git pull in next hours so I'll share the info I have.</span></font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse;">Stephen</span></font></div>
<div><div><div><div><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br>
</span></font><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 5:27 PM, Tihomir Culjaga <span dir="ltr"><<a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hello,<br><br>i upgraded to the latest GIT compiled configured FS without any issues... everything looks great... but when i put this into some traffic i noticed FS uses more and more memory... until it finished into swap. I didn't have issues like that previously but unfortunately i cannot recall what was the version with no issues.<br>
<br>The server is 64bit CentOS 5.4 and the FS version is the latest (well 4 days old tops). Im using just the standard modules (the list provided below) and FS keeps leaking memory<br><br> <load module="mod_console"/><br>
<load module="mod_logfile"/><br> <load module="mod_enum"/><br> <load module="mod_cdr_csv"/><br> <load module="mod_event_socket"/><br> <load module="mod_sofia"/><br>
<load module="mod_loopback"/><br> <load module="mod_commands"/><br> <load module="mod_conference"/><br> <load module="mod_db"/><br> <load module="mod_dptools"/><br>
<load module="mod_expr"/><br> <load module="mod_fifo"/><br> <load module="mod_hash"/><br> <load module="mod_voicemail"/><br> <load module="mod_esf"/><br>
<load module="mod_fsv"/><br> <load module="mod_cluechoo"/><br> <load module="mod_valet_parking"/><br> <load module="mod_dialplan_xml"/><br> <load module="mod_dialplan_asterisk"/><br>
<load module="mod_spandsp"/><br> <load module="mod_g723_1"/><br> <load module="mod_g729"/><br> <load module="mod_amr"/><br> <load module="mod_ilbc"/><br>
<load module="mod_speex"/><br> <load module="mod_h26x"/><br> <load module="mod_siren"/><br> <load module="mod_sndfile"/><br> <load module="mod_native_file"/><br>
<load module="mod_local_stream"/><br> <load module="mod_tone_stream"/><br> <load module="mod_spidermonkey"/><br> <load module="mod_lua"/><br> <load module="mod_say_en"/><br>
<br><br>This is the dialplan im triggering...<br><br> <extension name="doRedirect"><br> <condition field="destination_number" expression="^300030.*$"><br> <action application="info"/><br>
<action application="redirect" data="<sip:0999901234567889@10.1.1.11:5060;user=phone>;q=0.99"/><br> <action application="hangup"/> <!-- well ... not really needed but only Got knows for sure--><br>
</condition><br> </extension><br><br>I have i have tried a pure "hello world" dialplan as:<br><br> <extension name="testDP"><br>
<condition field="destination_number" expression="^300030.*$"><br>
<action application="info"/><br>
<action application="hangup"/><br>
</condition><br>
</extension><br><br>But the situation is exactly the same.<br><br><br><br>This is the behavior i'm having .... memory just keep growing and growing until it hits the swap where the server is doomed.<br><br> tail -f smaps_log.log (this is from cat /proc/$PID/smaps | grep heap)<br>
TIM,SIZE,RSS,SHARED_CLEAN,SHARED_DIRTY,PRIVATE_CLEAN,PRIVATE_DIRTY,SWAP<br>2011-07-13 13:50:34,19268,18916,0,0,0,18916,0<br>2011-07-13 13:51:34,19268,18972,0,0,0,18972,0<br>2011-07-13 13:52:34,20324,20088,0,0,0,20088,0<br>
2011-07-13 13:53:34,21264,20920,0,0,0,20920,0<br>2011-07-13 13:54:34,21048,20856,0,0,0,20856,0<br>2011-07-13 13:55:35,22396,22076,0,0,0,22076,0<br>2011-07-13 13:56:35,22396,22164,0,0,0,22256,0<br>2011-07-13 13:57:35,23220,22936,0,0,0,22936,0<br>
2011-07-13 13:58:35,23480,23288,0,0,0,23288,0<br><br>$ tail -f mem.log (this is from ps)<br>TIMESTAMP PID RSS %MEM<br>2011-07-13 13:48:55 2405 65144 12.8<br>2011-07-13 13:49:55 2405 66932 13.2<br>2011-07-13 13:50:55 2405 69576 13.7<br>
2011-07-13 13:51:55 2405 71552 14.1<br>2011-07-13 13:52:55 2405 73576 14.5<br>2011-07-13 13:53:55 2405 75804 14.9<br>2011-07-13 13:54:55 2405 78388 15.4<br>2011-07-13 13:55:55 2405 80544 15.9<br>2011-07-13 13:56:55 2405 81784 16.1<br>
2011-07-13 13:57:55 2405 83720 16.5<br>2011-07-13 13:58:55 2405 86524 17.0<br><br><br><br><br>FS runs under root account and it is started as:<br><br>/usr/local/freeswitch/bin/freeswitch -nc -nonat -db /dev/shm -conf /usr/local/freeswitch/conf/ -log /usr/local/freeswitch/log/ -run /usr/local/freeswitch/run/<br>
<br><br>Also ulimit is like this;<br><br> ulimit -c unlimited<br> ulimit -d unlimited<br> ulimit -f unlimited<br> ulimit -i unlimited<br> ulimit -n 999999<br> ulimit -q unlimited<br>
ulimit -u unlimited<br> ulimit -v unlimited<br> ulimit -x unlimited<br> ulimit -s 240<br> ulimit -l unlimited<br><br><br>so, does anyone have a clue on why the memory goes up ?<br>... what I'm doing wrong ?<br>
<br>Regards,<br><font color="#888888">Tihomir.<br><br><br><br><br><br>
</font><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div>
</div></div></div>