You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/10/29 04:46:11 UTC

DO NOT REPLY [Bug 46113] New: ThreadLimit is ignored

https://issues.apache.org/bugzilla/show_bug.cgi?id=46113

           Summary: ThreadLimit is ignored
           Product: Apache httpd-2
           Version: 2.2.10
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: worker
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: yanan@joit.com


I compiled apache 2.2.10 under Ubuntu Server 8.04.1 with parameter
--with-mpm=worker, and added following configs in httpd.conf:
<IfModule workder.c>
  StartServers 3
  ServerLimit 25
  MaxClients 2000
  MinSpareThreads 50
  MaxSpareThreads 200
  ThreadLimit 200
  ThreadsPerChild 100
  MaxRequestsPerChild 0
</IfModule>

But when i started apache, it printed some warnings:
WARNING: ThreadsPerChild of 100 exceeds ThreadLimit value of 64 threads,
lowering ThreadPerChild to 64. To increase, please see the ThreadLimit
directive.
WARNING: MaxClients(2000) is not an integer multiple of ThreadsPerChild(64),
lowering MaxClients to 1984 for a maximum of 31 child processes,
WARNING: MaxClients of 1984 would require 31 servers, and would exceed the
ServerLimit value of 25.
Automatically lowering MaxClients to 1600. To increase, please see the
ServerLimit directve.

It seems that ThreadLimit is ignored by apache.
Can anyone help me, please?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46113] ThreadLimit is ignored

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46113


Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|worker                      |Documentation




--- Comment #1 from Eric Covener <co...@gmail.com>  2008-10-29 04:17:08 PST ---
you have to maintain the relative order you see in the default config, i.e.
ThreadLimit before ThreadsPerChild.

(changing component to doc)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46113] ThreadLimit is ignored

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46113

Rich Bowen <rb...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|bugs@httpd.apache.org       |docs@httpd.apache.org

--- Comment #3 from Rich Bowen <rb...@apache.org> 2010-10-29 11:05:24 EDT ---
Moving docs bugs to docs@httpd.a.o ownership.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46113] ThreadLimit is ignored

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46113





--- Comment #2 from Timandes <ya...@joit.com>  2008-10-29 17:39:50 PST ---
I did not see the default config, because i did not know about 'worker' on my
first compiling. u means my config should like this:

ThreadLimit 200
<IfModule workder.c>
  StartServers 3
  ServerLimit 25
  MaxClients 2000
  MinSpareThreads 50
  MaxSpareThreads 200
  ThreadsPerChild 100
  MaxRequestsPerChild 0
</IfModule>

or this:

<IfModule workder.c>
  ThreadLimit 200
  StartServers 3
  ServerLimit 25
  MaxClients 2000
  MinSpareThreads 50
  MaxSpareThreads 200
  ThreadsPerChild 100
  MaxRequestsPerChild 0
</IfModule>

Thank u for ur help~


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org