[Freeswitch-dev] limit memory usage of freeswitch
*Hi All,****According to my experineces and some info found on FS lists it is the**normal behaviour that freeswitch eats up all of the available memory...**It's not a memory leak, but the standard behaviour of FS by design...**Correct me if I'm wrong...* *Is there any way to limit FS memory usage???*** *I need another services to run on the FS box...* * * *According to the answer on the users list, there is no built in way to limit the usage...* *I'm going to add this feature request to fs and add as an option to freeswitch.conf.xml* *Maybe I have to just modify the function where FS asks for available system memory...*** *** Can anyone advice me a direction, how to code it? **Thanks, **John*
FreeSWITCH doesn¹t eat up all the memory... It just eats up what it needs and just doesn¹t give it back.... The question is how many concurrent calls are you actually doing? Freeswitch will allocate as much ram as it needs to an upper limit based on max peak concurrent calls, then plateau there and not release that ram until you restart FreeSWITCH.... I have many boxes running high volumes of FreeSWITCH traffic w/ 4 to 8G of ram, and have secondary processes on those boxes that can use up to 2G of ram and don¹t have ram issues.... K On 1/16/13 5:43 AM, "rentmycoder rentmycoder" <rentmycoder@gmail.com> wrote:
Hi All,
According to my experineces and some info found on FS lists it is the normal behaviour that freeswitch eats up all of the available memory... It's not a memory leak, but the standard behaviour of FS by design... Correct me if I'm wrong... Is there any way to limit FS memory usage??? I need another services to run on the FS box...
According to the answer on the users list, there is no built in way to limit the usage... I'm going to add this feature request to fs and add as an option to freeswitch.conf.xml
Maybe I have to just modify the function where FS asks for available system memory... Can anyone advice me a direction, how to code it?
Thanks, John
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
I agree with Ken. That has been my similar experience. -James On Wed, Jan 16, 2013 at 10:59 AM, Ken Rice <krice@freeswitch.org> wrote:
FreeSWITCH doesn’t eat up all the memory... It just eats up what it needs and just doesn’t give it back....
The question is how many concurrent calls are you actually doing? Freeswitch will allocate as much ram as it needs to an upper limit based on max peak concurrent calls, then plateau there and not release that ram until you restart FreeSWITCH....
I have many boxes running high volumes of FreeSWITCH traffic w/ 4 to 8G of ram, and have secondary processes on those boxes that can use up to 2G of ram and don’t have ram issues....
K
On 1/16/13 5:43 AM, "rentmycoder rentmycoder" <rentmycoder@gmail.com> wrote:
*Hi All,
According to my experineces and some info found on FS lists it is the normal behaviour that freeswitch eats up all of the available memory... It's not a memory leak, but the standard behaviour of FS by design... Correct me if I'm wrong... * *Is there any way to limit FS memory usage??? I need another services to run on the FS box...
According to the answer on the users list, there is no built in way to limit the usage... I'm going to add this feature request to fs and add as an option to freeswitch.conf.xml *
*Maybe I have to just modify the function where FS asks for available system memory... Can anyone advice me a direction, how to code it?
Thanks, John * ------------------------------ _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Ken *http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org *irc.freenode.net #freeswitch
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
On Wed, Jan 16, 2013 at 10:59 AM, Ken Rice <krice@freeswitch.org> wrote:
FreeSWITCH doesn’t eat up all the memory... It just eats up what it needs and just doesn’t give it back....
On top of that, even giving it back via free() may not make much of a difference. For any Linux process, even after doing free() in a memory block, there is no guarantee that libc will return the memory to the operating system, and in most practical cases most likely does not, but rather keep it as a free chunk in their own pool for the next malloc request. For libc to return it it probably has to fulfill a bunch of requirements (full page 4k returned etc) which are rarely, if ever, met. *Moises Silva **Manager, Software Engineering*** msilva@sangoma.com Sangoma Technologies 100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada t. +1 800 388 2475 (N. America) t. +1 905 474 1990 x128 f. +1 905 474 9223 **<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures> Products<http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Solutions<http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Events<http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Contact<http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Wiki<http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Facebook<http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures> | Twitter<http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>`| | YouTube<http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures>
participants (4)
-
james jones
-
Ken Rice
-
Moises Silva
-
rentmycoder rentmycoder