<div dir="ltr">Hi Daniel,<div><br></div><div>We were running the kamailio without any issue after changing the shared memory to 1024. We dont have any issue on last two months. </div><div><br></div><div>But today we got the issue and we are not able to connect new tls connections. </div><div><br></div><div><div>Dec 15 08:13:56 webrtc /usr/sbin/kamailio[19550]: ERROR: tls [tls_server.c:190]: tls_complete_init(): tls: ssl bug #1491 workaround: not enough memory for safe operation: shm=9886536 threshold1=9961472</div><div>Dec 15 08:13:56 webrtc /usr/sbin/kamailio[19550]: ERROR: <core> [tcp_read.c:1321]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7f642bb1c668 r: 0x7f642bb1c6e8</div><div>Dec 15 08:13:56 webrtc /usr/sbin/kamailio[19550]: ERROR: tls [tls_server.c:190]: tls_complete_init(): tls: ssl bug #1491 workaround: not enough memory for safe operation: shm=9886536 threshold1=9961472</div><div>Dec 15 08:13:56 webrtc /usr/sbin/kamailio[19550]: ERROR: <core> [tcp_read.c:1321]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7f642bb1c668 r: 0x7f642bb1c6e8</div></div><div><br></div><div>There is no crash, it is only low memory and new connections not occuring. </div><div><br></div><div>Can you suggest what can be the resolution here ?. Do we need a process restart to free up the memory resource ?. </div><div><br>Regards</div><div><br>Varghese Paul </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 11, 2017 at 2:28 PM, Sergey Safarov <span dir="ltr"><<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Daniel<br>Could you look this ticket with attached backtrace<div><a href="https://2600hz.atlassian.net/browse/KAZOO-5699" target="_blank">https://2600hz.atlassian.net/<wbr>browse/KAZOO-5699</a></div><div><br></div><div>I not sure where is root of issue. May be your comment clean this.<br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr">ср, 11 окт. 2017 г. в 10:43, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>:<br></div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Still curious if you got a core file so far (or it was just those
      error messages) and if yes, it would be good to get the backtrace.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p></div><div text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="m_3437144602219818174m_-2807027298208216162moz-cite-prefix">On 11.10.17 05:27, Andrew Paul wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Thanks Daniel. We have increase shm memory to 1024
        from 64 and private memory to 64 from 8MB.
        <div><br>
        </div>
        <div>We will closely monitor and will update the thread if
          encounter any issue.</div>
        <div><br>
        </div>
        <div>Regards</div>
        <div><br>
          Varghese Paul </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Oct 10, 2017 at 10:04 PM,
          Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Hello,</p>
              <p>these errors do not indicate a crash, but unability to
                read due to low available memory. Did you get a crash
                (kamailio stopped)? If yes, any core file from where you
                can extract the backtrace?</p>
              <p>Anyhow, as hint, if you use a lot of tls, increase the
                size for shared memory, it is needed a lot there.</p>
              <p>Cheers,<br>
                Daniel<br>
              </p>
              <div>
                <div class="m_3437144602219818174m_-2807027298208216162h5"> <br>
                  <div class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-cite-prefix">On
                    10.10.17 16:32, Andrew Paul wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="m_3437144602219818174m_-2807027298208216162h5">
                    <div dir="ltr">Hi all,
                      <div><br>
                      </div>
                      <div>We were using kamailio 4.4.5 and we enabled
                        only for webrtc.</div>
                      <div><br>
                      </div>
                      <div>We were observing two memory crashed in last
                        two weeks. </div>
                      <div><br>
                      </div>
                      <div>
                        <div>Oct 10 01:03:03 webrtc
                          /usr/sbin/kamailio[18002]: ERROR: <core>
                          [tcp_read.c:1321]: tcp_read_req(): ERROR:
                          tcp_read_req: error reading - c:
                          0x7f21ea8f6198 r: 0x7f21ea8f6218</div>
                        <div>Oct 10 01:03:04 webrtc
                          /usr/sbin/kamailio[18003]: ERROR: tls
                          [tls_server.c:190]: tls_complete_init(): tls:
                          ssl bug #1491 workaround: not enough memory
                          for safe operation: shm=9926856
                          threshold1=9961472</div>
                        <div>Oct 10 01:03:04 webrtc
                          /usr/sbin/kamailio[18003]: ERROR: <core>
                          [tcp_read.c:1321]: tcp_read_req(): ERROR:
                          tcp_read_req: error reading - c:
                          0x7f21ea8f6198 r: 0x7f21ea8f6218</div>
                        <div>Oct 10 01:03:05 webrtc
                          /usr/sbin/kamailio[18004]: ERROR: tls
                          [tls_server.c:190]: tls_complete_init(): tls:
                          ssl bug #1491 workaround: not enough memory
                          for safe operation: shm=9926856
                          threshold1=9961472</div>
                        <div>Oct 10 01:03:05 webrtc
                          /usr/sbin/kamailio[18004]: ERROR: <core>
                          [tcp_read.c:1321]: tcp_read_req(): ERROR:
                          tcp_read_req: error reading - c:
                          0x7f21ea8f6198 r: 0x7f21ea8f6218</div>
                      </div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Is there any known issue for tls module in
                        kamailio_4.4.5 ?. We are using default 64MB for
                        shared memory and 8MB for private memory. Do we
                        need to increase this ?.</div>
                      <div><br>
                      </div>
                      <div>Regards</div>
                      <div><br>
                      </div>
                      <div>Andrew</div>
                    </div>
                    <br>
                    <fieldset class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="m_3437144602219818174m_-2807027298208216162HOEnZb"><font color="#888888">
</font></span></pre>
                <span class="m_3437144602219818174m_-2807027298208216162HOEnZb"><font color="#888888"> </font></span></blockquote>
              <span class="m_3437144602219818174m_-2807027298208216162HOEnZb"><font color="#888888"> <br>
                  <pre class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_3437144602219818174m_-2807027298208216162m_3755665707202213756moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
                </font></span></div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="m_3437144602219818174m_-2807027298208216162moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_3437144602219818174m_-2807027298208216162moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3437144602219818174m_-2807027298208216162moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - <a class="m_3437144602219818174m_-2807027298208216162moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - <a class="m_3437144602219818174m_-2807027298208216162moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </div>

______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div></div></div>
</blockquote></div><br></div>