Public bug reported: $ apache2 -v Server version: Apache/2.4.7 (Ubuntu) Server built: Jul 15 2016 15:34:04 $ cat /etc/os-release NAME="Ubuntu" VERSION="14.04.4 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.4 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
Configure apache like so: <IfModule mpm_worker_module> StartServers 10 MinSpareThreads 25 MaxSpareThreads 750 ThreadLimit 1000 ThreadsPerChild 750 # MaxRequestWorkers aka MaxClients => ServerLimit *ThreadsPerChild MaxRequestWorkers 15000 MaxConnectionsPerChild 0 ServerLimit 20 ThreadStackSize 524288 </IfModule> Use a tool such as slowhttptest to keep lots of connections open: $ slowhttptest -c 20000 -H -g -o my_header_stats-20k -i 10 -r 2000 -t GET -u http://localhost/ -x 24 -p 3 Notice how the httpd processes only have 66 threads each: $ ps -uwww-data -opid,ppid,nlwp | wc -l PID PPID NLWP 357 30954 9 561 30954 4 706 30954 22 1057 30954 66 1125 30954 66 1126 30954 66 1259 30954 66 1326 30954 66 1327 30954 66 1461 30954 66 1528 30954 66 1529 30954 66 1662 30954 66 1729 30954 66 Now change to mpm_event with the same settings and do the test again: $ ps -uwww-data -opid,ppid,nlwp PID PPID NLWP 3100 3097 752 3102 3097 752 3229 3097 752 3448 3097 752 10650 3097 752 Expected behavior: worker should behave much like event as documented: http://httpd.apache.org/docs/current/mod/event.html http://httpd.apache.org/docs/current/mod/worker.html ** Affects: apache2 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1628278 Title: mpm_worker has a limit of 64 ThreadsPerChild even if you configure it with a larger number To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1628278/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs