<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">And even that being said, Aqs Younas,
the original poster of the question, has never actually described
his situation as causing a stability problem for any the
freeswitch instances or the other running programs on those
servers. This may simply be an incorrect assumption from the
standpoint of how everybody is taught basic memory management:
free whatever you've allocated as soon as your done with that
given object.<br>
<br>
In case our original poster (and anybody else who is curious)
isn't as experienced with memory pools, the general idea behind
their use in FreeSWITCH is to cut down on memory fragmentation.
Every time you allocate an object, the operating system has to map
out some memory for you to use. If you do this too often for too
small of an amount of memory, you can negatively impact the
performance of the application and the system as a whole. Memory
pooling adds another layer onto the memory management in that
FreeSWITCH in this case requests a larger block of memory for
allocation, but then it allocates smaller objects off of that
pool. This is especially beneficial when the allocations happen
from within the same places. It also makes releasing this memory
a lot simpler because we then simply free the current memory pool,
and all objects on that given pool are technically no longer valid
objects ("freed"). But it frees the memory pool back to the
master memory pool that FreeSWITCH uses, and that grows, as Brian
stated, up to a given "high water mark". It's only when
FreeSWITCH stops running that is releases all those blocks of
allocated memory back to the operating system. When used properly
and in the right situations, as we do in FreeSWITCH, memory pools
are more efficient.<br>
<br>
So 3 GB of RAM used by the application with mod_vlc do not seem to
be such a stretch. Heck, I routinely have Mozilla Firefox and
Google Chrome each grab more RAM than that. In other words, if
there's no actual stability issue, this sounds like it's a case of
FreeSWITCH working in the way it has been engineered to do so.<br>
<br>
<pre class="moz-signature" cols="72">--
Yossi Neiman
On 03/27/2015 10:06 AM, Michael Jerris wrote:
</pre>
</div>
<blockquote
cite="mid:F4D38AA1-495E-4C11-86D0-75E228DF783E@jerris.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
That being said.. there is a known issue in mod_vlc in 1.4 that
leaks but I don't think enough to necessarily describe what you
are seeing. We are doing a complete rewrite of that module for
1.6 so that fix may not make it down to 1.4, still to be seen.
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 27, 2015, at 10:45 AM, Brian West <<a
moz-do-not-send="true"
href="mailto:brian@freeswitch.org" class="">brian@freeswitch.org</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">FreeSWITCH uses memory pools, so
NO in a lot of cases it won't give it back, it will hit
a high water mark based on your use case. And Drop
caches is dangerous.
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><br class="">
</div>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Fri, Mar 27, 2015 at 9:06
AM, Aqs Younas <span dir="ltr" class=""><<a
moz-do-not-send="true"
href="mailto:aqsyounas@gmail.com" target="_blank"
class="">aqsyounas@gmail.com</a>></span> wrote:<br
class="">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Hi, Brian. <br class="">
<br class="">
</div>
Its ok If vlc takes some ram, but freeswitch
must release the ram when there are no calls.<br
class="">
</div>
Is there any command that can make freeswitch
release the ram without restarting the
freeswitch. <br class="">
<br class="">
</div>
Like this linux command which makes linux release
the cached ram.<br class="">
<div class="">
<div class="">
<div class=""><br class="">
<div class="">
<div class="">free && sync
&& echo 3 >
/proc/sys/vm/drop_caches &&
free1<br class="">
<br class="">
</div>
<div class="">Thanks<br class="">
</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 27 March 2015 at
18:51, Aqs Younas <span dir="ltr" class=""><<a
moz-do-not-send="true"
href="mailto:aqsyounas@gmail.com"
target="_blank" class="">aqsyounas@gmail.com</a>></span>
wrote:<br class="">
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">Yes, we are using
linux and looking at RSS value.
<br class="">
<br class="">
</div>
Our dialplan is mostly using
mod_vlc for running streams.Just a
call comes in and a radio stream
is played with mod_vlc. I am not
sure either mod_vlc or something
else in freeswitch is eating up
ram.<br class="">
<br class="">
</div>
I just told our dialplan is mostly
based on mod_vlc a portion on
mod_curl. I have attached the top
command results in above post, you
can see freeswitch consuming more
ram than any process. <br class="">
<br class="">
</div>
One more thing, 6th freeswitch doesn't
capture ram more than 1 gb, that one
is not using mod_vlc or mod_curl. On
other 5 freeswitch we are facing the
issue.<br class="">
<br class="">
</div>
6th one freeswitch dialplan just consist
of. <br class="">
<br class="">
<extension name="garbage"><br
class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">
<condition><br class="">
<action
application="answer"/><br
class="">
<action
application="playback"
data="/opt/garbage/Generic_VM.wav"/><br
class="">
<action
application="hangup"/><br
class="">
</condition><br
class="">
</extension><br class="">
<br class="">
<br class="">
</div>
<div class="">Thanks for your
reply. <br class="">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="">
<div class="">
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On 27 March
2015 at 18:32, I put the Who? in
Mishehu <span dir="ltr" class=""><<a
moz-do-not-send="true"
href="mailto:mishehu@freeswitch.org"
target="_blank" class="">mishehu@freeswitch.org</a>></span>
wrote:<br class="">
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000" class="">
<div class="">Are you using
linux? If so, which memory
value are you looking at
(VSZ, RSS...) ?<br class="">
<br class="">
If you don't use mod_vlc, do
you still see FreeSWITCH
consuming this much RAM?
Usually FreeSWITCH builds up
a memory pool and won't
release that back to the
system until after shutdown,
but I don't normally see
that go above about 1.2GB of
RAM in any of the systems I
work on (though they do not
use mod_vlc).<span class=""><font
class="" color="#888888"><br
class="">
<br class="">
<pre cols="72" class="">--
Yossi Neiman
</pre>
</font></span>
<div class="">
<div class=""> On
03/27/2015 07:57 AM, Aqs
Younas wrote:<br
class="">
</div>
</div>
</div>
<blockquote type="cite"
class="">
<div class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">
<div class="">
<div class="">Hi,
users<br
class="">
<br class="">
</div>
We are using 6
freeswitch
instances, 5
freeswitch
instances for
playing
streams with
mod_vlc. After
3 to 4 for
days, we see
these (5)
freeswitch
taking more
than 3gb of
momory and
even though
calls are not
more than 25.
<br class="">
<br class="">
</div>
Usually, some
calls stay for
more than 2 to 3
hours on some
freeswitch.
Everytime we
have to restart
the freeswitch
to release the
captured memory.<br
class="">
<br class="">
</div>
But is believed,
freeswitch must
release the momory
when there are no
calls. But
freeswitch still
keeps captured
memory.<br
class="">
</div>
<div class=""><br
class="">
I have attactted
the top command
result along with
this email. <br
class="">
</div>
Willing to perform
any test if it helps
tackle the problem.
<br class="">
<br class="">
</div>
Thanks for your help.<br
class="">
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>