<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>Thanks for this information.</p>
    <p>I had my monitoring active during the last incident.</p>
    <p>It shows that the CPU was growing up during 20 minutes
      approximately (from 20% to 100%). In the same time I can see
      physical RAM usage growing up (from 30% to 60%), disk I/O were
      stable, far from critical levels, network traffic began to grow up
      when the CPU reached 100%. I'm in a private cloud, we are not
      limited neither in RAM I/O nor in HDD I/O. So I still don't
      understand how can I improve the situation.</p>
    <p>Best regards,</p>
    <p>Peter</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 22/05/2019 21:10, Travis Warlick via
      unit wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKbKY0EXqO_tMy25mqhPnZqpEXJuFGt_AtwG2DtMP1K299R-TA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">I am seeing the same log entries and have
          experienced a very similar consumption problem about once a
          month.  At the onset of the problem, there is a short spike in
          CPU usage, then the CPU usage goes to nearly 0, but the
          load-average stays near 2x the number of VCPUs.  After about
          20~30 minutes, the server becomes completely unresponsive, and
          I'm forced to reboot via the AWS console.  Some painfully
          obtained observations indicated that all available network and
          file resources were being consumed at this point.  After a
          couple occurrences, I noticed in AWS CloudWatch metrics that
          the EFS volume (Elastic File System, i.e. basically NFS)
          spiked to 100% throughput at nearly the same time as the short
          spike in CPU usage and stayed there.  My solution was to
          increase the volume's provisioned throughput to 10 Mbps, and I
          have not experienced the issue since, although I am still
          seeing the log entries you mention.  My conclusion is that
          nginx unit was consuming massive amounts of network and file
          system resources and "choking" the server.  This is obviously
          not a long-term solution, though, as there's no reason for
          such a massive amount of EFS volume throughput for a Wordpress
          application.
          <div>
            <div><br>
            </div>
            <div>
              <div>
                <div dir="ltr" class="gmail_signature"
                  data-smartmail="gmail_signature">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr">
                          <p style="font-size:12.8px"><font size="1"
                              face="arial, helvetica, sans-serif"
                              color="#000000"><b><br>
                                Travis Warlick</b><br>
                              <b>Manager, Development Operations</b><br>
                            </font></p>
                          <p style="font-size:12.8px"><font face="arial,
                              helvetica, sans-serif" color="#000000"><b>maxmedia</b><br>
                            </font><font size="1" face="arial,
                              helvetica, sans-serif" color="#999999"><a
                                href="https://www.maxmedia.com/"
                                target="_blank" moz-do-not-send="true"><font
                                  color="#999999">www.maxmedia.com</font></a><br>
                            </font></p>
                          <p style="font-size:12.8px"><span
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small">Find
                              us on: </span><a
                              href="https://www.linkedin.com/company/maxmedia/"
                              target="_blank"
                              style="font-family:arial,helvetica,sans-serif;font-size:x-small"
                              moz-do-not-send="true"><font
                                color="#999999">LinkedIn</font></a><span
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small"> | </span><a
                              href="https://twitter.com/maxmedia_atl"
                              target="_blank"
                              style="font-family:arial,helvetica,sans-serif;font-size:x-small"
                              moz-do-not-send="true"><font
                                color="#999999">Twitter</font></a><span
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small"> | </span><a
href="https://www.facebook.com/MaxMediaATL" target="_blank"
                              style="font-family:arial,helvetica,sans-serif;font-size:x-small"
                              moz-do-not-send="true"><font
                                color="#999999">Facebook</font></a><span
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small"> | </span><a
href="https://www.instagram.com/maxmedia_atl/" target="_blank"
                              style="font-family:arial,helvetica,sans-serif;font-size:x-small"
                              moz-do-not-send="true"><font
                                color="#999999">Instagram</font></a><span
style="color:rgb(153,153,153);font-family:arial,helvetica,sans-serif;font-size:x-small"> | </span><a
                              href="https://vimeo.com/mxm"
                              target="_blank"
                              style="font-family:arial,helvetica,sans-serif;font-size:x-small"
                              moz-do-not-send="true"><font
                                color="#999999">Vimeo</font></a><br>
                          </p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <br>
              <br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, May 22, 2019 at
            11:01 AM Peter TKATCHENKO <<a href="mailto:peter@bimp.fr"
              moz-do-not-send="true">peter@bimp.fr</a>> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#FFFFFF">
              <p>Hello,</p>
              <p>I'm using Unit to publish a PHP application
                (NextCloud). I am on FreeBSD 11.2 (jailed), I use PHP
                7.2 from packages. There is an NGINX server as
                front-end.<br>
              </p>
              <p>When I check Unit logs I see many records like this:</p>
              <p><font size="-1"><tt>2019/05/16 12:44:39 [info]
                    88085#101952 *73260 shutdown(177, 2) failed (57:
                    Socket is not connected)</tt></font><br>
              </p>
              <p>And sometimes like this:</p>
              <p><font size="-1"><tt>2019/05/16 12:53:39 [alert]
                    88085#101951 *74551 socket close(177) failed (54:
                    Connection reset by peer)</tt></font><br>
              </p>
              <p>The application seems to work correctly, but I would
                like to understand the cause of these errors, probably I
                need to tune something?</p>
              <p>Another problem is more important. Sometimes (once a
                week) 'unit: router' process begins to consume 100% of 4
                VCPU (!!), it takes about 15 minutes to grow the CPU
                usage, and finish by blocking completely the application
                ('bad gateway' error on nginx). Restart of unitd service
                solves the problem. I see many errors of the first type
                in logs at this moment, but nothing more interesting.<br>
              </p>
              <p>Best regards,</p>
              Peter TKATCHENKO </div>
            _______________________________________________<br>
            unit mailing list<br>
            <a href="mailto:unit@nginx.org" target="_blank"
              moz-do-not-send="true">unit@nginx.org</a><br>
            <a href="https://mailman.nginx.org/mailman/listinfo/unit"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://mailman.nginx.org/mailman/listinfo/unit</a></blockquote>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
unit mailing list
<a class="moz-txt-link-abbreviated" href="mailto:unit@nginx.org">unit@nginx.org</a>
<a class="moz-txt-link-freetext" href="https://mailman.nginx.org/mailman/listinfo/unit">https://mailman.nginx.org/mailman/listinfo/unit</a></pre>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p style="margin-bottom: 0mm; border: none; padding: 0mm; >
        <font color=" #000000"="" face="Verdana" size="3">
        <b>Peter TKATCHENKO | Consultant technique</b></p>
      <p style="margin-bottom: 0mm; border: none; padding: 0mm; >
        <font color=" #000000"="" face="Verdana" size="2">
        04 72 60 39 00 | 0 812 211 211</p>
      <p style="margin-bottom: 0mm; border: none; padding: 0mm; >
        <font color=" #000000"="" face="Verdana" size="2">
        150 allée des Frènes - 69760 LIMONEST</p>
      <p style="margin-bottom: 0mm; border: none; padding: 0mm; >
        <span style=" background:="" #ffffff"="">
        <img src="cid:part10.25CC6D92.73DA1343@bimp.fr" alt="BIMP Groupe
          LOGO">
      </p>
      <p styl="margin-bottom: 0mm; border: none; padding: 0mm; >
        <font color=" #1155cc"="" face="Verdana" size="1"
        style="font-size: 8pt">
        <b>Retrouvez-nous sur <u><a href="https://www.bimp.fr/">
              www.bimp.fr</a></u></b>
        <font style="font-size: 8pt" size="1" face="Verdana"
          color="#000000"><b>|</b></font>
        <font style="font-size: 8pt" size="1" face="Verdana"
          color="#1155cc">
          <u><b><a href="http://www.bimp-pro.fr/">
                www.bimp-pro.fr</a></b></u></font>
        <font style="font-size: 8pt" size="1" face="Verdana"
          color="#000000"><b>|</b></font>
        <font style="font-size: 8pt" size="1" face="Verdana"
          color="#1155cc">
          <u><b><a href="http://www.bimp-education.fr/">
                www.bimp-education.fr</a></b></u></font>
        <br>
        <br>
      </p>
      <p style="margin-bottom: 0mm; border: none; padding: 0mm; >
        <font color=" #919191"="" face="Verdana" size="1">
        Ce message et éventuellement les pièces jointes, sont
        exclusivement
        transmis à l'usage de leur destinataire et leur contenu est
        strictement confidentiel. Une quelconque copie, retransmission,
        diffusion ou autre usage, ainsi que toute utilisation par des
        personnes physiques ou morales ou entités autres que le
        destinataire
        sont formellement interdits. Si vous recevez ce message par
        erreur,
        merci de le détruire et d'en avertir immédiatement
        l'expéditeur.<br>
        L'Internet ne permettant pas d'assurer l'intégrité de ce
        message,
        l'expéditeur décline toute responsabilité au cas où il
        aurait été intercepté ou modifié par quiconque.</p>
    </div>
  </body>
</html>