Bug? Barage of hits leads to failure creating worker threads / stats tracking

Rafael Umann rafael.umann at terra.com.br
Mon Apr 13 21:16:15 CEST 2009


32 bits restrict you to use more than ~2.5gb of ram.

Try decreasing your cache size to see if you can open more threads  
(allocate memory for threads instead of using it all for cache) and  
also set the stack size smaller:

# vi /etc/security/limits.conf

* soft stack 512
* hard stack 512

(use 512kb of mem per thread)
or

* soft stack 1024
* hard stack 1024

(use 1mb of mem per thread)

[]s,
Rafael Umann



On Apr 13, 2009, at 3:52 PM, Ray Barnes wrote:

> On Mon, Apr 13, 2009 at 1:53 PM, Rafael Umann <rafael.umann at terra.com.br 
> > wrote:
> Take a look at you FDs:
> (linux)
> # cat /proc/sys/fs/file-nr
> 11730 0 5049800
>
> Varnish works with a limit of 65k file descriptors. Anything above  
> that will be a problem.
>
> http://varnish.projects.linpro.no/changeset/3631
>
> If you are getting 65k FD`S we hit the same problem.
>
> Thanks for the reply.  I'm barely reaching 1300:
>
> [root at vpsbox-mia ~]# cat /proc/sys/fs/file-nr
> 1344    0       106235
> [root at vpsbox-mia ~]#
>
>
>
> Another tip: if you are running on a 32bits system, thats your  
> problem!
>
> How does 32 bit architecture restrict me from creating > 380 threads  
> per process?
>
> -Ray
>
>
> E-mail verificado pelo Terra Anti-Spam.
> Para classificar esta mensagem como spam ou não spam, clique aqui.
> Verifique periodicamente a pasta Spam para garantir que apenas  
> mensagens
> indesejadas sejam classificadas como Spam.
>
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Atualizado em 12/04/2009
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20090413/9988f3db/attachment-0001.html>


More information about the varnish-dev mailing list