Stuck on max 1024 threads

Cosimo Streppone cosimo at streppone.it
Tue Nov 15 09:51:27 CET 2011


On Mon, 14 Nov 2011 19:38:44 +0100, Arjen Schat <arjen at thenextweb.com>  
wrote:

> This is the config used for startup.

Please send emails to the list.

> # Maximum number of open files (for ulimit -n)
> NFILES=131072
>
> [...]
>
> DAEMON_OPTS="-a 219.201.78.31:80 \
>              -T 168.20.2.106:6082 \
>              -f /etc/varnish/default.vcl \
>              -p listen_depth=4096 \
>              -p session_linger=150 \
>              -p thread_pool_add_delay=5 \
>              -p thread_pools=4 \
>              -p thread_pool_max=1500 \
>              -p thread_pool_min=50 \
>              -u varnish -g varnish \
>              -S /etc/varnish/secret \
>              -s malloc,6G"

How much memory do you have in your system?
An idea would be to check syslog for varnishd messages.

Also check varnishstat for the "N worker threads limited" counter.
That gives you an idea of how many and how quickly varnish tries
to create threads but doesn't succeed, IINM.

-- 
Cosimo




More information about the varnish-misc mailing list