libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] unexpected "Server reached connection limit." failur


From: Frank Ch. Eigler
Subject: Re: [libmicrohttpd] unexpected "Server reached connection limit." failures
Date: Sat, 04 Dec 2021 13:56:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Evgeny Grin wrote:

> Could you share your MHD flags, options, and commands you use to
> measure MHD load?

That could be tough, but see git://sourceware.org/git/elfutils.git
debuginfod/debuginfod.cxx.  The key bits appear to be:

- cgroups/ulimits impose a limit of a small number of tasks (threads)
- THREAD_PER_CONNECTION mode
- a http service callback that takes enough time to build up some
  concurrency, maybe just a sleep(10)
- then hit it with enough concurrent load to exceed the limits on tasks,
  so MHD_create_named_thread_() fails a bunch of times
- then ease the load rate back to nothing
- but observe that daemon->connections remains way above zero, maybe >1000
- and then even mild load starts getting rejected with the $subject error


- FChE




reply via email to

[Prev in Thread] Current Thread [Next in Thread]