Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr. Best Regards. Dome C.
What operating system? -William King Dome Charoenyost wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Debian Squeeze i386 32bit And Debian Lenny are same Dome C. 2009/10/7 William King <quentusrex@gmail.com>:
What operating system?
-William King
Dome Charoenyost wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Which modules do you have loaded? -William King Dome Charoenyost wrote:
Debian Squeeze i386 32bit And Debian Lenny are same
Dome C.
2009/10/7 William King <quentusrex@gmail.com>:
What operating system?
-William King
Dome Charoenyost wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
2009/10/7 William King <quentusrex@gmail.com>:
Which modules do you have loaded? default config and nibllebill , lcr , odbcquery
-William King
Dome Charoenyost wrote:
Debian Squeeze i386 32bit And Debian Lenny are same
Dome C.
2009/10/7 William King <quentusrex@gmail.com>:
What operating system?
-William King
Dome Charoenyost wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
It will use enough ram to load all of your modules, and applications. That is the initial ram usage on startup. So how much ram is FS using on startup? less than 250-300 MB of ram on initial load with all the modules and applications isn't unreasonable. I think by default it loads tons of stuff you probably wouldn't use in production. Next up is how much ram is used per call. This should hardly be anything. And last up, if you have freeswitch running for days and you see the memory usage grow from ~150MB to ~800MB, even if it takes weeks. Then there might be an issue. If you want to start finding where the RAM usage is located, then unload some modules and see if it does it still. Also, do you have any custom scripts in the dialplan? they might not be ending properly. Thus they stick around when you didn't intend them to. -William King Dome Charoenyost wrote:
2009/10/7 William King <quentusrex@gmail.com>:
Which modules do you have loaded?
default config and nibllebill , lcr , odbcquery
-William King
Dome Charoenyost wrote:
Debian Squeeze i386 32bit And Debian Lenny are same
Dome C.
2009/10/7 William King <quentusrex@gmail.com>:
What operating system?
-William King
Dome Charoenyost wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
We use memory pools and its not uncommon to use what you displayed. /b On Oct 6, 2009, at 12:51 PM, Dome Charoenyost wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C. <Screenshot-1.png>_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch- users http://www.freeswitch.org
On Tue, Oct 6, 2009 at 10:51 AM, Dome Charoenyost <dome@tel.co.th> wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
Do you have lots of modules loaded? The default config has lots of stuff loaded. If memory usage is a big issue then check your modules.conf.xml file and don't load unnecessary modules. Of course, you could use Asterisk but then you save memory at the expense of fewer features and more crashes...
-MC
2009/10/7 Michael Collins <msc@freeswitch.org>:
On Tue, Oct 6, 2009 at 10:51 AM, Dome Charoenyost <dome@tel.co.th> wrote:
Dear All, why freeswitch use more memory after send and receuve call. i attach htop capture screen. you can compare to asterisk it use 0.7% for long time. but FS use 7.7% (start from 1.2%) after running about 4 hr.
Best Regards.
Dome C.
Do you have lots of modules loaded? The default config has lots of stuff
I use LCR , nibblebill , odbcquery.
loaded. If memory usage is a big issue then check your modules.conf.xml file My question is why FS need more memory when start about 4 hr. is is normal or got problem ? So what's happen when running about 1 weeks ? some time my FS crash and i report bug in jira. and bug maintainer ask me is memory run out ? i think yes.
and don't load unnecessary modules. Of course, you could use Asterisk but then you save memory at the expense of fewer features and more crashes... No. i move all from asterisk to FS right now :)
-MC
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Brian West
-
Dome Charoenyost
-
Michael Collins
-
William King