<div>Hey guys,<br><br>I do a high load test, the test keep one hour. One hour later , varnish works fine with restarting child process some times but don't write log file. It don't write anything in _.vsl file after a period of time , even these keep alive words 'Rd ping ...' ,'Wr 0 200 PONG...' .
<div id="result_box" dir="ltr">Prior to this, it wrote about 16 M . What's wrong ?</div> </div>
<div>I don't know how to get gdb information , so Not 'Include a backtrace of the core-dump' ,sorry</div>
<div> </div>
<div>The test case detail:<br> servers:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.67/" target="_blank">10.217.12.67</a> A siege (a opensource software), used to simulate with the http requests</div>
<div> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/" target="_blank">10.217.12.19</a> varnish server<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.210.128.199/" target="_blank">10.210.128.199</a> apache server , the backend of varnish with flv files<br>
command( run in <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.67/" target="_blank">10.217.12.67</a>): </div>
<div> siege -c 100 -i -l -f test2.url</div>
<div> test2.url content :</div>
<div> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/0d8549c4833a494f1f7d399fdbdcb81413845300.flv" target="_blank">http://10.217.12.19/files/0d8549c4833a494f1f7d399fdbdcb81413845300.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434007.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434007.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/0e164d6c9214fef3c62273d1dc48558013845658.flv" target="_blank">http://10.217.12.19/files/0e164d6c9214fef3c62273d1dc48558013845658.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434005.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434005.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/125c8370ce789702aa77724c9f5f7b8413819002.flv" target="_blank">http://10.217.12.19/files/125c8370ce789702aa77724c9f5f7b8413819002.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434006.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434006.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/53a01e8576a2482212879607aa8d9bc013845100.flv" target="_blank">http://10.217.12.19/files/53a01e8576a2482212879607aa8d9bc013845100.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434002.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434002.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434004.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434004.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434828.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434828.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/bb4cfcd666d8c0fb3bdea04a6991d3458966027.flv" target="_blank">http://10.217.12.19/files/bb4cfcd666d8c0fb3bdea04a6991d3458966027.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434003.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434003.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/ee360dfee7e0937cd3771c5940cd120913845212.flv" target="_blank">http://10.217.12.19/files/ee360dfee7e0937cd3771c5940cd120913845212.flv</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434001.flv" target="_blank">http://10.217.12.19/files/716bccbfe6cdac7e51e117b2e0cea61d11434001.flv</a><br>
</div>
<div>The environment of varnishd <br> os :</div>
<div> FreeBSD 7.0-RELEASE , 5G Disk free , 512M <br><br> varnishd version :</div>
<div> trunk 2008-05-26 <br> </div>
<div> command: </div>
<div> /usr/local/sbin/varnishd -n /home/varnish/ -f /home/varnish/flv.vcl -a <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://0.0.0.0/" target="_blank">0.0.0.0:80</a> -s file,/home/varnish/varnish_cache.data,500M -g varnish -u varnish -w 3000,5120,10 -T <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://127.0.0.1:3500/" target="_blank">127.0.0.1:3500</a> -p client_http11=on</div>
<div><br> data and log files:<br> %ls -l /home/varnish<br> total 508672<br> -rw-r--r-- 1 root varnish 83886744 Jun 17 03:03 _.vsl<br> -rw-r--r-- 1 varnish varnish 1166 May 30 17:56 flv.vcl<br>
-rw------- 1 root varnish 524288000 Jun 19 03:02 varnish_cache.data<br> -rwxr-xr-x 1 root varnish 14195 Jun 16 14:44 vcl.1P9zoqAU.o<br> </div>
<div> process info:</div>
<div> %ps auwx</div>
<div> root 1103 0.0 0.1 85324 312 ?? Is Mon02PM 0:00.12 varnishd: Varnish-Mgr /home/varnish/ (varnishd)<br> varnish 1472 0.0 54.2 620160 272956 ?? I Mon04PM 1:02.91 varnishd: Varnish-Chld /home/varnish/ (varnishd)<br>
</div>
<div> assert message:</div>
<div> tail -n 100 /var/log/messages</div>
<div> </div>
<div>Jun 16 06:44:47 bsd_cxy varnishd: Child (1104) said <<Child starts>><br>Jun 16 06:44:47 bsd_cxy varnishd: Child (1104) said <<managed to mmap 524288000 bytes of 524288000>><br>Jun 16 06:44:47 bsd_cxy varnishd: Child (1104) said <<Ready>><br>
Jun 16 16:02:29 bsd_cxy kernel: pid 1104 (varnishd), uid 1002: exited on signal 6<br>Jun 16 08:02:29 bsd_cxy varnishd: Child (1104) said <<Assert error in STV_alloc(), stevedore.c line 71:>><br>Jun 16 08:02:29 bsd_cxy varnishd: Child (1104) said << Condition((st) != NULL) not true.>><br>
Jun 16 08:02:29 bsd_cxy varnishd: Child (1104) said << errno = 32 (Broken pipe)>><br>Jun 16 08:02:29 bsd_cxy varnishd: Child (1403) said <<Child starts>><br>Jun 16 08:02:29 bsd_cxy varnishd: Child (1403) said <<managed to mmap 524288000 bytes of 524288000>><br>
Jun 16 08:02:29 bsd_cxy varnishd: Child (1403) said <<Ready>><br>Jun 16 16:11:02 bsd_cxy kernel: pid 1403 (varnishd), uid 1002: exited on signal 6<br>Jun 16 08:11:02 bsd_cxy varnishd: Child (1403) said <<Assert error in STV_alloc(), stevedore.c line 71:>><br>
Jun 16 08:11:02 bsd_cxy varnishd: Child (1403) said << Condition((st) != NULL) not true.>><br>Jun 16 08:11:02 bsd_cxy varnishd: Child (1423) said <<Child starts>><br>Jun 16 08:11:02 bsd_cxy varnishd: Child (1423) said <<managed to mmap 524288000 bytes of 524288000>><br>
Jun 16 08:11:02 bsd_cxy varnishd: Child (1423) said <<Ready>><br>Jun 16 16:20:24 bsd_cxy kernel: pid 1423 (varnishd), uid 1002: exited on signal 6<br>Jun 16 08:20:24 bsd_cxy varnishd: Child (1423) said <<Assert error in STV_alloc(), stevedore.c line 71:>><br>
Jun 16 08:20:24 bsd_cxy varnishd: Child (1423) said << Condition((st) != NULL) not true.>><br>Jun 16 08:20:24 bsd_cxy varnishd: Child (1432) said <<Child starts>><br>Jun 16 08:20:24 bsd_cxy varnishd: Child (1432) said <<managed to mmap 524288000 bytes of 524288000>><br>
Jun 16 08:20:24 bsd_cxy varnishd: Child (1432) said <<Ready>><br>Jun 16 16:33:06 bsd_cxy kernel: pid 1432 (varnishd), uid 1002: exited on signal 6<br>Jun 16 08:33:06 bsd_cxy varnishd: Child (1432) said <<Assert error in STV_alloc(), stevedore.c line 71:>><br>
Jun 16 08:33:06 bsd_cxy varnishd: Child (1432) said << Condition((st) != NULL) not true.>><br>Jun 16 08:33:06 bsd_cxy varnishd: Child (1432) said << errno = 32 (Broken pipe)>><br>Jun 16 08:33:06 bsd_cxy varnishd: Child (1465) said <<Child starts>><br>
Jun 16 08:33:06 bsd_cxy varnishd: Child (1465) said <<managed to mmap 524288000 bytes of 524288000>><br>Jun 16 08:33:06 bsd_cxy varnishd: Child (1465) said <<Ready>><br>Jun 16 16:42:42 bsd_cxy kernel: pid 1465 (varnishd), uid 1002: exited on signal 6<br>
Jun 16 08:42:42 bsd_cxy varnishd: Child (1465) said <<Assert error in STV_alloc(), stevedore.c line 71:>><br>Jun 16 08:42:42 bsd_cxy varnishd: Child (1465) said << Condition((st) != NULL) not true.>><br>
Jun 16 08:42:42 bsd_cxy varnishd: Child (1472) said <<Child starts>><br>Jun 16 08:42:42 bsd_cxy varnishd: Child (1472) said <<managed to mmap 524288000 bytes of 524288000>><br>Jun 16 08:42:42 bsd_cxy varnishd: Child (1472) said <<Ready>><br>
</div>
<div> flv.vcl :</div>
<div>
<p>%cat flv.vcl<br> backend host2{<br> .host = "<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.210.128.199/" target="_blank">10.210.128.199</a>";<br> .port = "http";<br>
}<br> acl local {<br> "localhost"; /* myself */<br> "<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://10.217.12.0/" target="_blank">10.217.12.0</a>"/24; /* and everyone on the local network */<br>
}<br> <br>sub vcl_recv {<br> <br> if (req.request == "PURGE") {<br> if (!client.ip ~ local) {<br> error 405 "Not allowed.";<br> }<br> lookup;<br> }</p>
<p><br> if (req.request != "GET" && req.request != "HEAD") {<br> pipe;<br> }<br> <br> if (req.http.Expect) {<br> pipe;<br> }<br> if (req.http.Authenticate) { // was (req.http.Authenticate || req.http.Cookie)<br>
pass;<br> }<br> lookup;<br>}</p>
<p>sub vcl_pipe {<br> pipe;<br>}</p>
<p>sub vcl_pass {<br> pass;<br>}</p>
<p>sub vcl_hit {<br> if (!obj.cacheable) {<br> pass;<br> }<br> deliver;<br>}</p>
<p>sub vcl_miss {<br> fetch;<br>}</p>
<p>sub vcl_fetch {<br> if (!obj.valid) {<br> error;<br> }<br> if (!obj.cacheable) {<br> pass;<br> }<br> if (obj.http.Set-Cookie) {<br> pass;<br> }<br> insert;<br>}</p>
<p>sub vcl_deliver {<br> deliver;<br>}</p>
<p>sub vcl_timeout {<br> discard;<br>}</p>
<p>sub vcl_discard {<br> discard;<br>}<br></p></div>