Varnish crash (SIGABRT) about every 10 mins

Gea-Suan Lin gslin at gslin.org
Wed Nov 7 07:16:02 CET 2007


Our server will crash (SIGABRT, signal 6) every 10 mins (approximately).
We tried to use "-d" to see error log, but the server hangs and won't
listen port 80.

It's running FreeBSD 6.2-STABLE (amd64) with ports/www/varnisa.
(varnish-1.1.1_2)

dmesg and sysctl shows:

real memory  = 5100273664 (4864 MB)
avail memory = 4126154752 (3935 MB)

vm.kmem_size_scale: 3
vm.kmem_size_max: 419430400
vm.kmem_size: 419430400
hw.physmem: 4286906368
hw.usermem: 3878264832
hw.realmem: 5100273664

But the real memory is 4096MB not 4864MB, it might be the problem, but
I cannot make sure about this.

And, we modified some variables in sysctl:

kern.ipc.maxsockets: 262144
kern.maxfiles: 1048576
kern.maxfilesperproc: 524288
kern.threads.max_groups_per_proc: 8192
kern.threads.max_threads_per_proc: 8192

The running command is:

sudo /usr/bin/env -i /usr/local/sbin/varnishd -a 60.199.247.x:80 -f /usr/local/etc/varnish/image.vcl -h classic,1048583 -P /var/run/varnishd.pid -s file,/home/service/varnish-cache.mmap,32G -T 127.0.0.1:11957 -t 7200 -w 4096

And image.vcl is:

#
# haproxy - default
backend default {
        set backend.host = "127.0.0.1";
        set backend.port = "8080";
}

# vip - quota
backend vip {
        set backend.host = "10.1.2.3";
        set backend.port = "80";
}

sub vcl_recv {
        if (!req.http.Referer || req.http.Referer ~ "^https?://.*\.pixnet\.net(/|$)") {
                lookup;
        }

        set req.backend = vip;
        pipe;
}

-- 
* Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
* If you cannot convince them, confuse them.           -- Harry S Truman



More information about the varnish-misc mailing list