<div dir="ltr">Hi,<div><br></div><div><b>Varnishlog</b></div><div><b><br></b></div><div><div><i> Begin req 11316006 rxreq</i></div><div><i>- Timestamp Start: 1469722432.394488 0.000000 0.000000</i></div><div><i>- Timestamp Req: 1469722432.394488 0.000000 0.000000</i></div><div><i>- ReqStart 37.155.54.14 44531</i></div><div><i>- ReqMethod GET</i></div><div><i>- ReqURL /wp-content/cache/minify/000000/M9QvyC8oLdBNqtQtLi0oriwuyUzWzyrWT84vSgUA.js</i></div><div><i>- ReqProtocol HTTP/1.1</i></div><div><i>- ReqHeader Host: ******.com</i></div><div><i>- ReqHeader Connection: keep-alive</i></div><div><i>- ReqHeader Accept: */*</i></div><div><i>- ReqHeader User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G34 Safari/601.1</i></div><div><i>- ReqHeader Accept-Language: tr-tr</i></div><div><i>- ReqHeader Referer: http://******.com/2015/05/28/iphone-sim/</i></div><div><i>- ReqHeader Accept-Encoding: gzip, deflate</i></div><div><i>- ReqHeader X-Forwarded-For: 37.155.54.14</i></div><div><i>- VCL_call RECV</i></div><div><i>- ReqHeader X-Actual-IP: 37.155.54.14</i></div><div><i>- ReqUnset X-Forwarded-For: 37.155.54.14</i></div><div><i>- ReqHeader X-Forwarded-For: 37.155.54.14, 37.155.54.14</i></div><div><i>- ReqHeader Cookie:</i></div><div><i>- ReqUnset Cookie:</i></div><div><i>- ReqHeader Cookie:</i></div><div><i>- ReqUnset X-Forwarded-For: 37.155.54.14, 37.155.54.14</i></div><div><i>- ReqHeader X-Forwarded-For: 37.155.54.14, 37.155.54.14, 37.155.54.14</i></div><div><i>- ReqUnset Accept-Encoding: gzip, deflate</i></div><div><i>- ReqHeader Accept-Encoding: gzip</i></div><div><i>- ReqUnset Cookie:</i></div><div><i>- VCL_return hash</i></div><div><i>- VCL_call HASH</i></div><div><i>- VCL_return lookup</i></div><div><i>- Hit 2159905671</i></div><div><i>- VCL_call HIT</i></div><div><i>- VCL_return deliver</i></div><div><i>- RespProtocol HTTP/1.1</i></div><div><i>- RespStatus 200</i></div><div><i>- RespReason OK</i></div><div><i>- RespHeader Date: Thu, 28 Jul 2016 15:39:44 GMT</i></div><div><i>- RespHeader Server: Apache/2</i></div><div><i>- RespHeader Last-Modified: Thu, 28 Jul 2016 07:01:56 GMT</i></div><div><i>- RespHeader ETag: "2086-538acb5a886de-gzip"</i></div><div><i>- RespHeader Content-Encoding: gzip</i></div><div><i>- RespHeader Cache-Control: public, must-revalidate, proxy-revalidate</i></div><div><i>- RespHeader Expires: Fri, 05 Aug 2016 16:21:56 GMT</i></div><div><i>- RespHeader X-Powered-By: W3 Total Cache/<a href="http://0.9.4.1">0.9.4.1</a></i></div><div><i>- RespHeader Pragma: public</i></div><div><i>- RespHeader Content-Length: 2648</i></div><div><i>- RespHeader Content-Type: application/x-javascript</i></div><div><i>- RespHeader Vary: Accept-Encoding</i></div><div><i>- RespHeader X-Varnish: 10925524 12422023</i></div><div><i>- RespHeader Age: 2048</i></div><div><i>- RespHeader Via: 1.1 varnish-v4</i></div><div><i>- VCL_call DELIVER</i></div><div><i>- RespHeader X-Cache: HIT</i></div><div><i>- VCL_return deliver</i></div><div><i>- Timestamp Process: 1469722432.394522 0.000034 0.000034</i></div><div><i>- Debug "RES_MODE 2"</i></div><div><i>- RespHeader Connection: keep-alive</i></div><div><i>- RespHeader Accept-Ranges: bytes</i></div><div><i>- Timestamp Resp: 1469722432.394532 0.000044 0.000009</i></div><div><i>- Debug "XXX REF 2"</i></div><div><i>- ReqAcct 437 0 437 536 2648 3184</i></div><div><i>- End</i></div><div><i><br></i></div><div><b>Varnishstat</b></div><div><b><br></b></div><div><div><i>Uptime mgt: 7+16:11:24 Hitrate n: 10 15 15</i></div><div><i>Uptime child: 1+05:05:54 avg(n): 0.9377 0.9307 0.9307</i></div><div><i><br></i></div><div><i> NAME CURRENT CHANGE AVERAGE AVG_10 AVG_100 AVG_1000</i></div><div><i>MAIN.uptime 104754 1.00 1.00 1.00 1.00 1.00</i></div><div><i>MAIN.sess_conn 945720 10.98 9.00 8.95 8.85 8.85</i></div><div><i>MAIN.client_req 3194781 54.91 30.00 71.19 72.71 72.71</i></div><div><i>MAIN.cache_hit 2958915 50.92 28.00 69.23 70.78 70.78</i></div><div><i>MAIN.cache_miss 38356 1.00 . 0.17 0.14 0.14</i></div><div><i>MAIN.backend_conn 53745 0.00 0.50 0.50 0.50</i></div><div><i>MAIN.backend_fail 1 0.00 0.00 0.00 0.00</i></div><div><i>MAIN.backend_reuse 181395 2.00 1.00 1.20 1.14 1.14</i></div><div><i>MAIN.backend_toolate 51712 0.00 . 0.62 0.64 0.64</i></div><div><i>MAIN.backend_recycle 233110 3.00 2.00 2.04 2.00 2.00</i></div><div><i>MAIN.backend_retry 44 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.fetch_head 16 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.fetch_length 216684 3.00 2.00 2.04 2.00 2.00</i></div><div><i>MAIN.fetch_chunked 17377 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.fetch_close 57 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.fetch_304 591 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.pools 2 0.00 . 2.00 2.00 2.00</i></div><div><i>MAIN.threads 100 0.00 . 100.00 100.00 100.00</i></div><div><i>MAIN.threads_limited 1 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.threads_created 402 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.threads_destroyed 302 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.busy_sleep 280 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.busy_wakeup 280 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.sess_queued 307 0.00 . 0.00 0.00 0.00</i></div><div><i>MAIN.n_object 38125 0.00 . 38122.79 38122.60 38122.60</i></div></div><div style="font-weight:bold"><br></div><div><br></div><div><b>Default.vcl</b></div><div><br></div><div><div><i>vcl 4.0;</i></div><div><i>import std;</i></div><div><i><br></i></div><div><i>backend default {</i></div><div><i> .host = "MY SERVER IP";</i></div><div><i> .port = "8080";</i></div><div><i><br></i></div><div><b>Varnish</b></div><div><b><br></b></div><div><div><i># Configuration file for varnish</i></div><div><i>#</i></div><div><i># /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this</i></div><div><i># shell script fragment.</i></div><div><i>#</i></div><div><i><br></i></div><div><i># Maximum number of open files (for ulimit -n)</i></div><div><i>NFILES=131072</i></div><div><i><br></i></div><div><i># Locked shared memory (for ulimit -l)</i></div><div><i># Default log size is 82MB + header</i></div><div><i>MEMLOCK=82000</i></div><div><i><br></i></div><div><i># Maximum number of threads (for ulimit -u)</i></div><div><i>NPROCS="unlimited"</i></div><div><i><br></i></div><div><i># Maximum size of corefile (for ulimit -c). Default in Fedora is 0</i></div><div><i># DAEMON_COREFILE_LIMIT="unlimited"</i></div><div><i><br></i></div><div><i># Set this to 1 to make init script reload try to switch vcl without restart.</i></div><div><i># To make this work, you need to set the following variables</i></div><div><i># explicit: VARNISH_VCL_CONF, VARNISH_ADMIN_LISTEN_ADDRESS,</i></div><div><i># VARNISH_ADMIN_LISTEN_PORT, VARNISH_SECRET_FILE, or in short,</i></div><div><i># use Alternative 3, Advanced configuration, below</i></div><div><i>RELOAD_VCL=1</i></div><div><i><br></i></div><div><i># This file contains 4 alternatives, please use only one.</i></div><div><i><br></i></div><div><i>## Alternative 1, Minimal configuration, no VCL</i></div><div><i>#</i></div><div><i># Listen on port 6081, administration on localhost:6082, and forward to</i></div><div><i># content server on localhost:8080. Use a fixed-size cache file.</i></div><div><i>#</i></div><div><i>#DAEMON_OPTS="-a :6081 \</i></div><div><i># -T localhost:6082 \</i></div><div><i># -b localhost:8080 \</i></div><div><i># -u varnish -g varnish \</i></div><div><i># -s file,/var/lib/varnish/varnish_storage.bin,1G"</i></div><div><i><br></i></div><div><i><br></i></div><div><i>## Alternative 2, Configuration with VCL</i></div><div><i>#</i></div><div><i># Listen on port 6081, administration on localhost:6082, and forward to</i></div><div><i># one content server selected by the vcl file, based on the request. Use a</i></div><div><i># fixed-size cache file.</i></div><div><i>#</i></div><div><i>#DAEMON_OPTS="-a :80 \</i></div><div><i># -T localhost:6082 \</i></div><div><i># -f /etc/varnish/default.vcl \</i></div><div><i># -S /etc/varnish/secret \</i></div><div><i># -s malloc,2G"</i></div><div><i><br></i></div><div><i><br></i></div><div><i>## Alternative 3, Advanced configuration</i></div><div><i>#</i></div><div><i># See varnishd(1) for more information.</i></div><div><i>#</i></div><div><i># # Main configuration file. You probably want to change it :)</i></div><div><i>VARNISH_VCL_CONF=/etc/varnish/default.vcl</i></div><div><i>#</i></div><div><i># # Default address and port to bind to</i></div><div><i># # Blank address means all IPv4 and IPv6 interfaces, otherwise specify</i></div><div><i># # a host name, an IPv4 dotted quad, or an IPv6 address in brackets.</i></div><div><i># VARNISH_LISTEN_ADDRESS=</i></div><div><i>VARNISH_LISTEN_PORT=80</i></div><div><i>#</i></div><div><i># # Telnet admin interface listen address and port</i></div><div><i>VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1</i></div><div><i>VARNISH_ADMIN_LISTEN_PORT=6082</i></div><div><i>#</i></div><div><i># # Shared secret file for admin interface</i></div><div><i>VARNISH_SECRET_FILE=/etc/varnish/secret</i></div><div><i>#</i></div><div><i># # The minimum number of worker threads to start</i></div><div><i>VARNISH_MIN_THREADS=50</i></div><div><i>#</i></div><div><i># # The Maximum number of worker threads to start</i></div><div><i>VARNISH_MAX_THREADS=1000</i></div><div><i>#</i></div><div><i># # Idle timeout for worker threads</i></div><div><i>VARNISH_THREAD_TIMEOUT=120</i></div><div><i>#</i></div><div><i># # Cache file size: in bytes, optionally using k / M / G / T suffix,</i></div><div><i># # or in percentage of available disk space using the % suffix.</i></div><div><i>VARNISH_STORAGE_SIZE=4G</i></div><div><i>#</i></div><div><i># # Backend storage specification</i></div><div><i>VARNISH_STORAGE="malloc,${VARNISH_STORAGE_SIZE}"</i></div><div><i>#</i></div><div><i># # Default TTL used when the backend does not specify one</i></div><div><i>VARNISH_TTL=120</i></div><div><i>#</i></div><div><i># # DAEMON_OPTS is used by the init script. If you add or remove options, make</i></div><div><i># # sure you update this section, too.</i></div><div><i>DAEMON_OPTS="-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \</i></div><div><i> -f ${VARNISH_VCL_CONF} \</i></div><div><i> -T ${VARNISH_ADMIN_LISTEN_ADDRESS}:${VARNISH_ADMIN_LISTEN_PORT} \</i></div><div><i> -t ${VARNISH_TTL} \</i></div><div><i> -p thread_pool_min=${VARNISH_MIN_THREADS} \</i></div><div><i> -p thread_pool_max=${VARNISH_MAX_THREADS} \</i></div><div><i> -p thread_pool_timeout=${VARNISH_THREAD_TIMEOUT} \</i></div><div><i> -u varnish -g varnish \</i></div><div><i> -S ${VARNISH_SECRET_FILE} \</i></div><div><i> -s ${VARNISH_STORAGE}"</i></div><div><i>#</i></div><div><i><br></i></div><div><i><br></i></div><div><i>## Alternative 4, Do It Yourself. See varnishd(1) for more information.</i></div><div><i>#</i></div><div><i># DAEMON_OPTS=""</i></div><div style="font-weight:bold"><br></div></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-28 19:08 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">can you pastebin your vcl? and maybe a varnishlog?<span class="HOEnZb"><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>