Can't create more than 494 threads

info at dubistmeinheld.de info at dubistmeinheld.de
Fri Jun 2 10:49:06 CEST 2017


On 01.06.2017 18:52, Jason Price wrote:
> dimesg might help.  log files should indicate if you're in an 'open
> files limit' issue...

You pointed me in the right direction regarding log files. Thanks!

>From syslog (only shown when starting varnish this error comes up, then
it's omitted):
kernel: [84513.627267] cgroup:
fork rejected by pids controller in /system.slice/varnish.service

Which led me to the solution to change systemd settings:
https://www.novell.com/support/kb/doc.php?id=7018594

This may also affect not only openSuSE distros in the future. Happy again!

> On Thu, Jun 1, 2017 at 7:51 AM, info at dubistmeinheld.de
> <mailto:info at dubistmeinheld.de> <info at dubistmeinheld.de
> <mailto:info at dubistmeinheld.de>> wrote:
> 
>     Hi,
> 
>     I'm using Varnish since a couple of years and I'm very satisfied. Thank
>     you for the work!
> 
>     Recently I setup a new server with Varnish 5.0. For some reasons,
>     threads_created is stuck at 494 and threads_failed increase every
>     second, even with no load (-s malloc,2G -p thread_pools=2 -p
>     thread_pool_min=250 -p thread_pool_max=2000 -p
>     thread_pool_fail_delay=2).
> 
>     MAIN.threads                    494          .   Total number of threads
>     MAIN.threads_limited              0         0.00 Threads hit max
>     MAIN.threads_created            494         0.01 Threads created
>     MAIN.threads_destroyed            0         0.00 Threads destroyed
>     MAIN.threads_failed             356         0.01 Thread creation failed
> 
>     I tried now for a couple of days to fix this issue and I'm looking in
>     the area of a kernel param. But I'm completely stuck on what's
>     causing it.
> 
>     I would appreciate any help and pointing me into the right direction.
> 
>     Best regards,
>     Jens
> 
>     _______________________________________________
>     varnish-misc mailing list
>     varnish-misc at varnish-cache.org <mailto:varnish-misc at varnish-cache.org>
>     https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>     <https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc>
> 
> 



More information about the varnish-misc mailing list