<div dir="ltr">Since you're using Prefork, it requires a new process per request and can tend to spike resources especially with wp admin-ajax requests. I suggest using a threaded MPM such as Worker which will yield far better performance results. This isn't a Varnish related requirement, more of a suggested Apache config for better performance. Thanks for the netdata tip, I noticed it in the menu shortly after asking :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 2:28 AM, Ayberk Kimsesiz <span dir="ltr"><<a href="mailto:ayberk.kimsesiz@gmail.com" target="_blank">ayberk.kimsesiz@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">Hi Andrei,<div><br></div><div>If i disable the Varnish, everything returns to normal. I use MPM as a Prefork. Do i need to use Worker MPM for Varnish? </div><div>When i check the httpd-status, i see a strong relation between high CPU usage and AJAX based codes.</div><div><br></div><div><div><i>wpcf7_is_ajax_call=1&_wpcf7=19211&_wpcf7_request_v</i></div><div><i>wp-admin/admin-ajax.php HTTP/1.1</i></div><div><i>/forum/settings/analyticstick.json HTTP/1.1</i></div></div><div><div><br></div><div>Monitoring Software: Net Data <a href="https://github.com/firehol/netdata" target="_blank">https://github.com/firehol/netdata</a></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-08-02 9:58 GMT+03:00 Andrei <span dir="ltr"><<a href="mailto:lagged@gmail.com" target="_blank">lagged@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Are you using the Event MPM by chance? If so, I suggest switching over to Worker since Event rarely runs into a bug/issue which causes threads to use inordinate amounts of resources while processing trivial requests.<div>A bit off-topic, but what's that monitoring software being used from the ss?</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Aug 1, 2016 at 2:59 AM, Ayberk Kimsesiz <span dir="ltr"><<a href="mailto:ayberk.kimsesiz@gmail.com" target="_blank">ayberk.kimsesiz@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi again,<div><br></div><div><span><div dir="ltr" style="font-size:12.8px">The problem is still continue. While Varnish is active CPU usage is always close to 100%.</div><div dir="ltr" style="font-size:12.8px"><br></div></span><div style="font-size:12.8px">Thanks</div><div style="font-size:12.8px"></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-31 8:54 GMT+03:00 Ayberk Kimsesiz <span dir="ltr"><<a href="mailto:ayberk.kimsesiz@gmail.com" target="_blank">ayberk.kimsesiz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can you help? The problem is still continue. While Varnish is active CPU usage is always close to 100%.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-28 19:57 GMT+03:00 Ayberk Kimsesiz <span dir="ltr"><<a href="mailto:ayberk.kimsesiz@gmail.com" target="_blank">ayberk.kimsesiz@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div><b>CPU Monitor: </b></div><div><br></div><div><a href="http://i.imgur.com/5KT1xRu.jpg" target="_blank">http://i.imgur.com/5KT1xRu.jpg</a></div><div><br></div><div><b>Apache status:</b></div><div><br></div><div><table border="0" style="font-family:"times new roman""><tbody><tr><th>Srv</th><th>PID</th><th>Acc</th><th>M</th><th>CPU</th><th>SS</th><th>Req</th><th>Conn</th><th>Child</th><th>Slot</th><th>Client</th><th>Protocol</th><th>VHost</th><th>Request</th></tr><tr><td><b>0-0</b></td><td>-</td><td>0/0/9766</td><td>.</td><td>134.59</td><td>37</td><td>0</td><td>0.0</td><td>0.00</td><td>64.40</td><td>::1</td><td>http/1.1</td><td nowrap>ns1.***com:8080</td><td nowrap>OPTIONS * HTTP/1.0</td></tr><tr><td><b>1-0</b></td><td>14612</td><td>0/16/9058</td><td>_</td><td>17.83</td><td>13</td><td>1498</td><td>0.0</td><td>0.02</td><td>53.29</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr><tr><td><b>2-0</b></td><td>10863</td><td>0/179/9795</td><td>_</td><td>185.14</td><td>6</td><td>1424</td><td>0.0</td><td>0.58</td><td>60.32</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr><tr><td><b>3-0</b></td><td>13127</td><td>0/127/9435</td><td>_</td><td>119.80</td><td>4</td><td>1419</td><td>0.0</td><td>0.42</td><td>56.51</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr><tr><td><b>4-0</b></td><td>-</td><td>0/0/9187</td><td>.</td><td>0.00</td><td>50</td><td>0</td><td>0.0</td><td>0.00</td><td>56.60</td><td>::1</td><td>http/1.1</td><td nowrap>ns1.***.com:8080</td><td nowrap>OPTIONS * HTTP/1.0</td></tr><tr><td><b>5-0</b></td><td>14851</td><td>0/9/8761</td><td>_</td><td>8.95</td><td>13</td><td>1559</td><td>0.0</td><td>0.01</td><td>57.90</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr><tr><td><b>6-0</b></td><td>14852</td><td>0/6/8130</td><td>_</td><td>6.67</td><td>4</td><td>1482</td><td>0.0</td><td>0.01</td><td>51.88</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr><tr><td><b>7-0</b></td><td>14192</td><td>11/57/8355</td><td><b>K</b></td><td>72.73</td><td>0</td><td>1363</td><td>106.6</td><td>0.44</td><td>52.79</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr><tr><td><b>8-0</b></td><td>13067</td><td>0/125/7795</td><td>_</td><td>121.19</td><td>13</td><td>1759</td><td>0.0</td><td>0.65</td><td>68.27</td><td>176.***.10</td><td>http/1.1</td><td nowrap>www.***.com:8080</td><td nowrap>POST /wp-admin/admin-ajax.php HTTP/1.1</td></tr></tbody></table></div><div><br></div><div>Apache error logs don't show anything about CPU.<br></div><div><div><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-28 19:31 GMT+03:00 Guillaume Quintard <span dir="ltr"><<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-software.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You seem to have a good hit ratio, are you seeing anything on the apache logs that would explain the cpu usage?<span><font color="#888888"><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard</div></div></div></div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br></div></div><span>_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>