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>Tihomir.<br><br><br><br><br><br>