<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi David,</p>
<p>Thank for the reply.</p>
<p>Yes, i've set on sofia profile to shutdown on fail:</p>
<p><param name="shutdown-on-fail" value="true"/><br>
<param name="auto-restart" value="false"/><br>
</p>
<p>No, is not started multiple times, i also don't have any cron
that would start it, is internally that the forking is happing,
also the sofia profiles are not been restarted: the counters
doesn't seem to be reset.</p>
<p>Based on jira:</p>
<p><a class="moz-txt-link-freetext" href="https://freeswitch.org/jira/browse/FS-10572">https://freeswitch.org/jira/browse/FS-10572</a></p>
<p><br>
</p>
<p>Currently i've set a new parameter on switch.conf: <br>
</p>
<p><param name="threaded-system-exec" value="true"/></p>
<p>So far FS didn't fork to another child process, still waiting a
few days to validate that this options solve my issue.</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 18/11/2018 00:01, David Villasmil
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFGRPVq1ncC-yV5mo8cxS7w+9sPf7E=F3WFwBpg1yNf4qDSTUA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Also, regarding memory usage, that's how FS works.
It takes memory AS NEEDED and simply doesn't returns it, it
holds it for future use.<br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img alt=""
style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=0734517e-082c-43b3-848d-18c8465a4250"
moz-do-not-send="true"><font size="1" color="#ffffff">ᐧ</font></div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Sat, Nov 17, 2018 at 11:00 PM David Villasmil
<<a href="mailto:david.villasmil.work@gmail.com"
moz-do-not-send="true">david.villasmil.work@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I've never seen this...
<div><br>
</div>
<div>Is it possible the process is being started multiple
times? You _can_ run fs multiple times, but only the first
would start properly as the rest would try to bind to a
port already in use by the first process.</div>
<div>There's a parameter on all profiles to shutdown if it
can't start, try setting that and see what happens.</div>
<div>You should also check your crontab... This is NOT
normal FS behaviour, as far as i know.</div>
<div><br>
</div>
<div><br clear="all">
<div>
<div dir="ltr"
class="m_-5649194046387505941gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
</div>
<div hspace="streak-pt-mark" style="max-height:1px"><img
alt="" style="width:0px;max-height:0px;overflow:hidden"
src="https://mailfoogae.appspot.com/t?sender=aZGF2aWQudmlsbGFzbWlsLndvcmtAZ21haWwuY29t&type=zerocontent&guid=7c593167-5340-4ef6-8e76-73832badb1c1"
moz-do-not-send="true"><font size="1" color="#ffffff">ᐧ</font></div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Fri, Nov 9, 2018 at 7:48 PM António Silva
via FreeSWITCH-users <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "António Silva" <<a
href="mailto:asilva@wirelessmundi.com" target="_blank"
moz-do-not-send="true">asilva@wirelessmundi.com</a>><br>
To: FreeSWITCH Users Help <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Bcc: <br>
Date: Thu, 8 Nov 2018 17:53:03 +0100<br>
Subject: Re: Memory increase because of multiple instances
of freeswitch<br>
Forget to put my unit configuration:<br>
<br>
[Service]<br>
; service<br>
Type=forking<br>
PIDFile=/run/freeswitch/freeswitch.pid<br>
ExecStart=/usr/bin/freeswitch -ncwait -nonat -scripts
/scripts/fs<br>
TimeoutSec=300s<br>
Restart=on-failure<br>
RestartSec=500ms<br>
; exec<br>
User=root<br>
Group=daemon<br>
LimitCORE=infinity<br>
LimitNOFILE=100000<br>
LimitNPROC=60000<br>
LimitSTACK=250000<br>
LimitRTPRIO=infinity<br>
LimitRTTIME=infinity<br>
IOSchedulingClass=realtime<br>
IOSchedulingPriority=2<br>
CPUSchedulingPolicy=rr<br>
CPUSchedulingPriority=89<br>
UMask=0007<br>
<br>
<br>
<br>
On 08/11/2018 17:11, António Silva wrote:<br>
> Hi all,<br>
><br>
> I notice a strange behaviour on machine due to
increase of memory, <br>
> when i went to see that was the process consuming the
memory i notice <br>
> that freeswitch have multiple process running:<br>
><br>
> root 2543 90.4 4.8 2178716 1587484 ?
S<sl Sep27 36619:46 <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
> root 7858 0.0 5.0 2289392 1649484 ? SN
Oct19 0:00 \_ <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
> root 30626 0.0 4.4 2172632 1464684 ? SN
Oct23 0:00 \_ <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
> root 4505 0.0 4.9 2336544 1621768 ? SN
10:43 0:00 \_ <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
> root 22557 0.0 4.9 2336548 1636604 ? SN
11:02 0:00 \_ <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
><br>
><br>
> and today:<br>
><br>
> root 21823 93.9 4.8 2154128 1581064 ?
S<sl Oct26 17781:45 <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
> root 18417 0.0 4.9 2247264 1610108 ? SN
11:09 0:00 \_ <br>
> /usr/bin/freeswitch -ncwait -nonat -scripts
/opt/commsmundi/scripts/fs<br>
><br>
><br>
> what could be the cause of this? anyone experience
the same?<br>
><br>
> As for the service everything is running ok, is just
that the memory <br>
> keeps increasing.. i restart freewitch when i start
to reach my memory <br>
> limit.<br>
><br>
><br>
> I'm running fs 1.8.2 on debian jessie.<br>
><br>
><br>
-- <br>
Saludos / Regards / Cumprimentos<br>
António Silva<br>
<br>
<br>
<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "António Silva via FreeSWITCH-users" <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
To: FreeSWITCH Users Help <<a
href="mailto:freeswitch-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
Cc: <br>
Bcc: <br>
Date: Fri, 09 Nov 2018 11:48:33 -0800 (PST)<br>
Subject: Re: [Freeswitch-users] Memory increase because of
multiple instances of freeswitch<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank"
moz-do-not-send="true">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org"
target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer"
target="_blank" moz-do-not-send="true">https://freeswitch.com</a></blockquote>
</div>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Saludos / Regards / Cumprimentos
António Silva</pre>
</body>
</html>