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 2011/03/25 19:54:34 UTC

DO NOT REPLY [Bug 50974] New: Child process infinite loop / 100% CPU under heavy load

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

           Summary: Child process infinite loop / 100% CPU under heavy
                    load
           Product: Apache httpd-2
           Version: 2.2.16
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: worker
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: danielm@buscape-inc.com


Child process infinite loop / 100% CPU under heavy load

The process is stuck inside read()

Trace:

#0 0x0000003adf20cc8b in read () from /lib64/libpthread.so.0
#1 0x0000000000565c47 in ap_mpm_pod_check (pod=<value optimized out>) at
pod.c:54
#2 0x0000000000563d81 in child_main (child_num_arg=<value optimized out>) at
worker.c:1258
#3 0x0000000000563f21 in make_child (s=0x37efa28, slot=2) at worker.c:1341
#4 0x0000000000563fc5 in startup_children (number_to_start=3) at worker.c:1375
#5 0x0000000000564ce2 in ap_mpm_run (_pconf=0x37e6138, plog=<value optimized
out>,
s=0x37efa28) at worker.c:1742
#6 0x0000000000412f77 in main (argc=1, argv=0x7fff6ef369b8) at main.c:740

System is a CentOS release 5.5 (Final) (gcc 4.1.2, glibc 2.5, kernel 2.6.18)

Machine is a dual Dual-Core AMD Opteron(tm) Processor 2214 HE (4 cores)

Server version: Apache/2.2.16 (Unix)
Server built:   Mar 25 2011 14:45:51

Compiled with CFLAGS="-Wall -Wextra -O2 -s -march=opteron -mtune=opteron"

./configure --with-mpm=worker --disable-charset-lite --disable-include
--disable-env --disable-status --disable-autoindex --disable-asis --disable-cgi
--disable-negotiation --disable-imagemap --disable-actions --disable-userdir
--disable-alias --disable-so --enable-deflate --enable-headers
--with-included-apr

Worker config is the following:

<IfModule worker.c>
  ThreadLimit         300
  StartServers        5
  MaxClients          512
  MinSpareThreads     50
  MaxSpareThreads     100
  ThreadsPerChild     32
  MaxRequestsPerChild 0
  MaxMemFree              500000
</IfModule>

-- 
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 50974] Child process infinite loop / 100% CPU under heavy load

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Eric Covener <co...@gmail.com> 2011-03-25 15:11:02 EDT ---
that thread isn't looping, try to find something more suspect in "thread apply
all bt"

-- 
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 50974] Child process infinite loop / 100% CPU under heavy load

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

danielm@buscape-inc.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #2 from danielm@buscape-inc.com 2011-03-25 17:11:58 EDT ---
Hmmm, "thread apply all bt" helped me find a loop inside another thread I was
not seeing. Thanks.

-- 
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