<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>update on this issue, setting the parameter, threaded_system_exec
      = true, solved my problem, no more forks from fs and memory usage
      is stable.</p>
    <div class="moz-cite-prefix">On 20/11/2018 17:23, António Silva
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:3362de9e-1e03-85f4-b1b6-3721a16d81a6@wirelessmundi.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi,</p>
      <p>I was getting the process list from the command: "ps auxf |
        grep freeswitch"</p>
      <p>Still waiting to see it again on the server, i can't reproduce
        it, when it happens again i post here the output. Not sure if
        enabling threaded_system_exec solved the issue. <br>
      </p>
      <div class="moz-cite-prefix">On 19/11/2018 19:11, David Villasmil
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:CAFGRPVrdgDTKio=GYhmWZO9Z8yrJdKrO6eUWD+-nfuaWPRXGmg@mail.gmail.com">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <div dir="ltr">Totally true, i didn't think of that... @antonio,
          can you try `ps -ef`?<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=860e40a7-2c1e-4aa0-99c5-b4b9050b003e"
            moz-do-not-send="true"><font size="1" color="#ffffff">ᐧ</font></div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr">On Mon, Nov 19, 2018 at 3:49 PM Ken Rice <<a
              href="mailto:krice@freeswitch.org" moz-do-not-send="true">krice@freeswitch.org</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="auto">well also keep in mind that depending on how
              he is looking for freeswitch processes he may be seeing
              multiple as the threads will show up ad their individual
              psuedo PID for example in htop<br>
              <br>
              <div id="m_703444031486253890AppleMailSignature" dir="ltr">Sent
                from my iPhone</div>
              <div dir="ltr"><br>
                On Nov 17, 2018, at 17:01, David Villasmil <<a
                  href="mailto:david.villasmil.work@gmail.com"
                  target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a>>
                wrote:<br>
                <br>
              </div>
              <blockquote type="cite">
                <div dir="ltr">
                  <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="m_703444031486253890gmail_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"
                        target="_blank" 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_703444031486253890m_-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>
                </div>
              </blockquote>
              <blockquote type="cite">
                <div dir="ltr"><span>_________________________________________________________________________</span><br>
                  <span>Professional FreeSWITCH Services</span><br>
                  <span><a href="mailto:sales@freeswitch.com"
                      target="_blank" moz-do-not-send="true">sales@freeswitch.com</a></span><br>
                  <span><a href="https://freeswitch.com" target="_blank"
                      moz-do-not-send="true">https://freeswitch.com</a></span><br>
                  <span></span><br>
                  <span>Official FreeSWITCH Sites</span><br>
                  <span><a href="https://freeswitch.com/oss"
                      target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a></span><br>
                  <span><a href="https://freeswitch.org/confluence"
                      target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a></span><br>
                  <span><a href="https://cluecon.com" target="_blank"
                      moz-do-not-send="true">https://cluecon.com</a></span><br>
                  <span></span><br>
                  <span>FreeSWITCH-users mailing list</span><br>
                  <span><a
                      href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                      target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a></span><br>
                  <span><a
                      href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                      target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br>
                  <span>UNSUBSCRIBE:<a
                      href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                      target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br>
                  <span><a href="https://freeswitch.com" target="_blank"
                      moz-do-not-send="true">https://freeswitch.com</a></span></div>
              </blockquote>
            </div>
_________________________________________________________________________<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>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_________________________________________________________________________
Professional FreeSWITCH Services
<a class="moz-txt-link-abbreviated" href="mailto:sales@freeswitch.com" moz-do-not-send="true">sales@freeswitch.com</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com" moz-do-not-send="true">https://freeswitch.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="https://freeswitch.com/oss" moz-do-not-send="true">https://freeswitch.com/oss</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.org/confluence" moz-do-not-send="true">https://freeswitch.org/confluence</a>
<a class="moz-txt-link-freetext" href="https://cluecon.com" moz-do-not-send="true">https://cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" moz-do-not-send="true">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" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="https://freeswitch.com" moz-do-not-send="true">https://freeswitch.com</a></pre>
      </blockquote>
      <pre class="moz-signature" cols="72">-- 
Saludos / Regards / Cumprimentos
António Silva</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Saludos / Regards / Cumprimentos
António Silva</pre>
  </body>
</html>