<div dir="ltr">Ok now just type the following from the wp docroot to find your culprit: egrep -Rn '<span style="font-size:12.8px">sm_type|is_unique|connect_hash|reqType' wp-content/{plugins,themes}</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 10:58 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>Here are the results:<br></div><div><div><br></div><div>T *****:56538 -> ******:8080 [AP]</div><div>POST /wp-admin/admin-ajax.php HTTP/1.1.</div><div>Host: *******.com.</div><div>Accept-Language: tr-tr.</div><div>User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_0 like Mac OS X) AppleWebKit/6 02.1.40 (KHTML, like Gecko) Version/10.0 Mobile/14A5309d Safari/602.1.</div><div>X-Requested-With: XMLHttpRequest.</div><div>Accept: application/json, text/javascript, */*; q=0.01.</div><div>Referer: http://******/.</div><div>Content-Type: application/x-www-form-urlencoded; charset=UTF-8.</div><div>Content-Length: 130.</div><div>Origin: http://****.com.</div><div>X-Actual-IP: 5.46.70.115.</div><div>Cookie: pps_show_100=Tue%20Aug%2002%202016%2018%3A50%3A21%20GMT+0300%20%28EEST%2 9; pps_times_showed_100=1.</div><div>X-Forwarded-For: 5.46.70.115, 5.46.70.115, 5.46.70.115.</div><div>Accept-Encoding: gzip.</div><div>X-Varnish: 39754073.</div><div>.</div><div>mod=statistics&action=add&id=100&type=show&sm_type=0&is_unique=1&connect_hash=c1 532a201e2ee25540c61d3199e0e960&pl=pps&reqType=ajax</div></div><div><br></div><div><br></div><div><div><br></div><div>T *****:56652 -> ******:8080 [AP]</div><div>POST /wp-admin/admin-ajax.php HTTP/1.1.</div><div>Host: *****.com.</div><div>Content-Length: 130.</div><div>Origin: http://*****.com.</div><div>X-Requested-With: XMLHttpRequest.</div><div>User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.19.</div><div>Content-Type: application/x-www-form-urlencoded; charset=UTF-8.</div><div>Accept: application/json, text/javascript, */*; q=0.01.</div><div>Referer: <a href="https://www.yandex.com.tr/" target="_blank">https://www.yandex.com.tr/</a>.</div><div>Accept-Language: en-us,en.</div><div>Accept-Charset: iso-8859-1,*,utf-8.</div><div>X-Actual-IP: 78.173.206.179.</div><div>Cookie: PHPSESSID=br4avjrtmgd0e2j04eoelev4r6; pps_show_100=Tue%20Aug%2002%202016%2018%3A51%3A14%20GMT+0300%20%28Turkey%20Daylight%20 Time%29; pps_times_showed_100=2.</div><div>X-Forwarded-For: 78.173.206.179, 78.173.206.179, 78.173.206.179.</div><div>Accept-Encoding: gzip.</div><div>X-Varnish: 37456291.</div><div>.</div><div>mod=statistics&action=add&id=100&type=show&sm_type=0&is_unique=0&connect_hash=c1532a201e2ee25540c61d3199e0e960&pl=pps&reqType=ajax</div></div><div><br></div><div><div><br></div><div>T *****:56630 -> *****.10:8080 [AP]</div><div>POST /wp-admin/admin-ajax.php HTTP/1.1.</div><div>Host: *****.com.</div><div>Content-Length: 130.</div><div>Origin: http://*****.com.</div><div>X-Requested-With: XMLHttpRequest.</div><div>User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:46.0) Gecko/20100101 Firefox/46.8.</div><div>Content-Type: application/x-www-form-urlencoded; charset=UTF-8.</div><div>Accept: application/json, text/javascript, */*; q=0.01.</div><div>Referer: <a href="https://google.com.tr/" target="_blank">https://google.com.tr/</a>.</div><div>Accept-Language: en-us,en.</div><div>Accept-Charset: iso-8859-1,*,utf-8.</div><div>X-Actual-IP: 46.197.96.35.</div><div>Cookie: pps_show_100=Tue%20Aug%2002%202016%2018%3A51%3A27%20GMT+0300%20%28T%FCrkiye%20Yaz%20Saati%29; pps_times_showed_100=1.</div><div>X-Forwarded-For: 46.197.96.35, 46.197.96.35, 46.197.96.35.</div><div>Accept-Encoding: gzip.</div><div>X-Varnish: 35061669.</div></div><div><br></div><div>Heartbeat plugin didn't fix it by the way.<br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-08-02 18:45 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">Those admin-ajax.php POST requests won't get cached, and are likely related to WordPress heartbeats, or plugins. The quickest way to see what those requests actually are, which will help you identify the plugin/theme option is using ngrep: ngrep 'admin-ajax' -d any dst port 8080 -W byline -q</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 9:43 AM, MAGNIEN, Thierry <span dir="ltr"><<a href="mailto:thierry.magnien@sfr.com" target="_blank">thierry.magnien@sfr.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="FR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">There are known CPU issues due to WordPress HearBeat API, for example, or misbehaving plugins.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">See
<a href="http://www.inmotionhosting.com/support/website/wordpress/heartbeat-ajax-php-usage" target="_blank">
http://www.inmotionhosting.com/support/website/wordpress/heartbeat-ajax-php-usage</a> for example.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Maybe one of your plugins has some difficulties going through varnish.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">If you enable debug on your browser, can you see specific calls to /wp-admin/admin-ajax.php that take a very long time with varnish and not when
varnish is disabled ?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thierry<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De :</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> varnish-misc-bounces+thierry.magnien=<a href="mailto:sfr.com@varnish-cache.org" target="_blank">sfr.com@varnish-cache.org</a> [mailto:<a href="mailto:varnish-misc-bounces%2Bthierry.magnien" target="_blank">varnish-misc-bounces+thierry.magnien</a>=<a href="mailto:sfr.com@varnish-cache.org" target="_blank">sfr.com@varnish-cache.org</a>]
<b>De la part de</b> Ayberk Kimsesiz<br>
<b>Envoyé :</b> mardi 2 août 2016 15:18<br>
<b>À :</b> Stig Bakken<br>
<b>Cc :</b> varnish-misc<br>
<b>Objet :</b> Re: Varnish CPU Usage<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">I used Default.VCL in two different ways. The first with default settings and the second with settings customized for Wordpress (either case, the CPU usage increases). That is as follows:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Also i couldn't find a Centos 6 installation guide for Prometheus.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><i>/* SET THE HOST AND PORT OF WORDPRESS</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> * *********************************************************/</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>vcl 4.0;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>import std;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>backend default {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> .host = "SERVER IP";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> .port = "8080";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> .first_byte_timeout = 60s;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> .connect_timeout = 300s;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># SET THE ALLOWED IP OF PURGE REQUESTS</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>acl purge {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> "localhost";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> "127.0.0.1";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>#THE RECV FUNCTION</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>sub vcl_recv {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># set realIP by trimming CloudFlare IP which will be used for various checks</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>set req.http.X-Actual-IP = regsub(req.http.X-Forwarded-For, "[, ].*$", ""); </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # FORWARD THE IP OF THE REQUEST</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.restarts == 0) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.http.x-forwarded-for) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.X-Forwarded-For =</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.http.X-Forwarded-For + ", " + client.ip;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> } else {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.X-Forwarded-For = client.ip;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # Purge request check sections for hash_always_miss, purge and ban</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # BLOCK IF NOT IP is not in purge acl</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # Enable smart refreshing using hash_always_miss</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>if (req.http.Cache-Control ~ "no-cache") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (client.ip ~ purge || !std.ip(req.http.X-Actual-IP, "1.2.3.4") ~ purge) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.hash_always_miss = true;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>if (req.method == "PURGE") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (!client.ip ~ purge || !std.ip(req.http.X-Actual-IP, "1.2.3.4") ~ purge) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return(synth(405,"Not allowed."));</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (purge);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>if (req.method == "BAN") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # Same ACL check as above:</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (!client.ip ~ purge || !std.ip(req.http.X-Actual-IP, "1.2.3.4") ~ purge) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return(synth(403, "Not allowed."));</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> ban("req.http.host == " + req.http.host +</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> " && req.url == " + req.url);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # Throw a synthetic page so the</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # request won't go to the backend.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return(synth(200, "Ban added"));</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># Unset cloudflare cookies</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># Remove has_js and CloudFlare/Google Analytics __* cookies.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(_[_a-z]+|has_js)=[^;]*", "");</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # Remove a ";" prefix, if present.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.Cookie = regsub(req.http.Cookie, "^;\s*", "");</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # For Testing: If you want to test with Varnish passing (not caching) uncomment</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # return( pass );</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # FORWARD THE IP OF THE REQUEST</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.restarts == 0) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.http.x-forwarded-for) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.X-Forwarded-For =</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.http.X-Forwarded-For + ", " + client.ip;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> } else {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.X-Forwarded-For = client.ip;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># DO NOT CACHE RSS FEED</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.url ~ "/feed(/)?") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return ( pass ); </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>## Do not cache search results, comment these 3 lines if you do want to cache them</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>if (req.url ~ "/\?s\=") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return ( pass ); </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># CLEAN UP THE ENCODING HEADER.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # SET TO GZIP, DEFLATE, OR REMOVE ENTIRELY. WITH VARY ACCEPT-ENCODING</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # VARNISH WILL CREATE SEPARATE CACHES FOR EACH</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # DO NOT ACCEPT-ENCODING IMAGES, ZIPPED FILES, AUDIO, ETC.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.http.Accept-Encoding) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.url ~ "\.(jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg)$") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # No point in compressing these</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> unset req.http.Accept-Encoding;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> } elsif (req.http.Accept-Encoding ~ "gzip") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.Accept-Encoding = "gzip";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> } elsif (req.http.Accept-Encoding ~ "deflate") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set req.http.Accept-Encoding = "deflate";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> } else {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # unknown algorithm</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> unset req.http.Accept-Encoding;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # PIPE ALL NON-STANDARD REQUESTS</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.method != "GET" &&</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.method != "HEAD" &&</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.method != "PUT" && </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.method != "POST" &&</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.method != "TRACE" &&</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.method != "OPTIONS" &&</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> req.method != "DELETE") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (pipe);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ONLY CACHE GET AND HEAD REQUESTS</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.method != "GET" && req.method != "HEAD") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (pass);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # OPTIONAL: DO NOT CACHE LOGGED IN USERS (THIS OCCURS IN FETCH TOO, EITHER</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # COMMENT OR UNCOMMENT BOTH</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if ( req.http.cookie ~ "wordpress_logged_in" ) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return( pass );</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF THE REQUEST IS NOT FOR A PREVIEW, WP-ADMIN OR WP-LOGIN</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # THEN UNSET THE COOKIES</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (!(req.url ~ "wp-(login|admin)") </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> && !(req.url ~ "&preview=true" ) </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> ){</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> unset req.http.cookie;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF BASIC AUTH IS ON THEN DO NOT CACHE</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.http.Authorization || req.http.Cookie) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (pass);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF YOU GET HERE THEN THIS REQUEST SHOULD BE CACHED</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (hash);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # This is for phpmyadmin</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>if (req.http.Host == "<a href="http://ki1.org" target="_blank">ki1.org</a>") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>return (pass);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>if (req.http.Host == "<a href="http://mysql.ki1.org" target="_blank">mysql.ki1.org</a>") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>return (pass);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># HIT FUNCTION</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>sub vcl_hit {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF THIS IS A PURGE REQUEST THEN DO THE PURGE</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.method == "PURGE") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> #</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # This is now handled in vcl_recv.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> #</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # purge;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (synth(200, "Purged."));</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (deliver);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># MISS FUNCTION</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>sub vcl_miss {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (req.method == "PURGE") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> #</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # This is now handled in vcl_recv.</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> #</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # purge;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (synth(200, "Purged."));</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (fetch);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># FETCH FUNCTION</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>sub vcl_backend_response {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # I SET THE VARY TO ACCEPT-ENCODING, THIS OVERRIDES W3TC </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # TENDANCY TO SET VARY USER-AGENT. YOU MAY OR MAY NOT WANT</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # TO DO THIS</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set beresp.http.Vary = "Accept-Encoding";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF NOT WP-ADMIN THEN UNSET COOKIES AND SET THE AMOUNT OF </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # TIME THIS PAGE WILL STAY CACHED (TTL)</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (!(bereq.url ~ "wp-(login|admin)") && !bereq.http.cookie ~ "wordpress_logged_in" ) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> unset beresp.http.set-cookie;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set beresp.ttl = 52w;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># set beresp.grace =1w;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (beresp.ttl <= 0s ||</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> beresp.http.Set-Cookie ||</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> beresp.http.Vary == "*") {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set beresp.ttl = 120 s;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # set beresp.ttl = 120s;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set beresp.uncacheable = true;</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (deliver);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i> return (deliver);</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><i># DELIVER FUNCTION</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i># ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>sub vcl_deliver {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF THIS PAGE IS ALREADY CACHED THEN RETURN A 'HIT' TEXT </i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IN THE HEADER (GREAT FOR DEBUGGING)</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> if (obj.hits > 0) {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set resp.http.X-Cache = "HIT";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # IF THIS IS A MISS RETURN THAT IN THE HEADER</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> # ##########################################################</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> } else {</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> set resp.http.X-Cache = "MISS";</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i> }</i><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><i>}</i><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2016-08-02 15:07 GMT+03:00 Stig Bakken <<a href="mailto:stig@zedge.net" target="_blank">stig@zedge.net</a>>:<u></u><u></u></p>
<div>
<p class="MsoNormal">Could it be that Varnish is not caching those POST requests, and that they are what makes Apache consume a lot of CPU?<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">On MPMs: with PHP prefork is the safest choice, and it will work just fine as long as you have a reasonable config, especially since you have Varnish in front offloading the job of shuffling bytes back to the users.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If I were you I'd try to get more data on which requests take a long time, some variant of "varnishncsa -F %D"..<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If you're into using Prometheus for metrics, you can try out this exporter which will give you a lot of insight into which requests take a long time to process:
<a href="https://github.com/stigsb/varnish_request_exporter" target="_blank">https://github.com/stigsb/varnish_request_exporter</a> (Prometheus is awesome!)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"> - Stig<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">On Thu, Jul 28, 2016 at 6:57 PM, Ayberk Kimsesiz <<a href="mailto:ayberk.kimsesiz@gmail.com" target="_blank">ayberk.kimsesiz@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><b>CPU Monitor: </b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://i.imgur.com/5KT1xRu.jpg" target="_blank">http://i.imgur.com/5KT1xRu.jpg</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><b>Apache status:</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Srv<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>PID<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Acc<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>M<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>CPU<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>SS<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Req<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Conn<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Child<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Slot<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Client<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Protocol<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>VHost<u></u><u></u></b></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal" align="center" style="text-align:center"><b>Request<u></u><u></u></b></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>0-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">-<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/0/9766<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">.<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">134.59<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">37<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.00<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">64.40<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">::1<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">ns1.***com:8080<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">OPTIONS * HTTP/1.0<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>1-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">14612<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/16/9058<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">_<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">17.83<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">13<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1498<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.02<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">53.29<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>2-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">10863<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/179/9795<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">_<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">185.14<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">6<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1424<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.58<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">60.32<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>3-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">13127<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/127/9435<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">_<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">119.80<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">4<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1419<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.42<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">56.51<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>4-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">-<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/0/9187<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">.<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.00<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">50<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.00<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">56.60<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">::1<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">ns1.***.com:8080<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">OPTIONS * HTTP/1.0<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>5-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">14851<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/9/8761<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">_<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">8.95<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">13<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1559<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.01<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">57.90<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>6-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">14852<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/6/8130<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">_<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">6.67<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">4<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1482<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.01<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">51.88<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>7-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">14192<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">11/57/8355<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>K</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">72.73<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1363<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">106.6<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.44<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">52.79<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><b>8-0</b><u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">13067<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0/125/7795<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">_<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">121.19<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">13<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">1759<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.0<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">0.65<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">68.27<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">176.***.10<u></u><u></u></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">http/1.1<u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.***.com:8080" target="_blank">www.***.com:8080</a><u></u><u></u></p>
</td>
<td nowrap style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">POST /wp-admin/admin-ajax.php HTTP/1.1<u></u><u></u></p>
</td>
</tr>
</tbody>
</table>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Apache error logs don't show anything about CPU.<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2016-07-28 19:31 GMT+03:00 Guillaume Quintard <<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-software.com</a>>:<u></u><u></u></p>
<div>
<p class="MsoNormal">You seem to have a good hit ratio, are you seeing anything on the apache logs that would explain the cpu usage?<span style="color:#888888"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="color:#888888"><br clear="all">
<u></u><u></u></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="color:#888888">-- <u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="color:#888888">Guillaume Quintard<u></u><u></u></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><span style="color:#888888"><br>
<br clear="all">
<span><u></u><u></u></span></span></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><span><span style="color:#888888">-- </span><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="color:#888888">Stig Bakken<br>
CTO, Zedge.net - free your phone!</span><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<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></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>