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 2012/02/24 11:44:44 UTC

DO NOT REPLY [Bug 52759] New: Apache httpd child process consuming high CPU Utilization.

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

             Bug #: 52759
           Summary: Apache httpd child process consuming high CPU
                    Utilization.
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: hirenpatel5684@yahoo.com
    Classification: Unclassified


Created attachment 28378
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28378
output of lsof -p <pid>

Hello Team,

We are facing high cpu utilization issue for Apache httpd process(child)

Apache version:2.2.11

Tomcat version:6.0.18

OS:linux 

uname-a :Linux WEB10_64 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008
x86_64 x86_64 x86_64 GNU/Linux

lsof output is attached below.

-->Apache childprocess is waiting for closed state hence it is consuming high
CPU.

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

--- Comment #2 from Hiren Patel <hi...@yahoo.com> 2012-03-09 10:35:49 UTC ---
Created attachment 28444
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28444
pstack and gdb trace output...

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

--- Comment #5 from Rainer Jung <ra...@kippdata.de> 2012-03-09 18:57:11 UTC ---
The problem seems to happen, when mod_jk reveiced the final package from the
AJP back end and at the end of the response request cycle calls
ap_finalize_request_protocol(). The connection to the client is an HTTPS
connection and maybe it happens during lingering close? Was the lsof taken
during the spining CPU? The lsof output does not contain the client connection,
so it seems that connection was already closed.

The loop seems to be in OpenSSL. What looks suspicious in the dumps is
len=0x7fff95282a50 in ssl_io_input_read().

I don't have a real recommendation here.

Rainer

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

--- Comment #6 from Hiren Patel <hi...@yahoo.com> 2012-03-10 05:46:02 UTC ---
Yes, lsof output was taken when Apache process was taking high cpu..
openssl version is 0.9.8b

Is this issue related to socket connection or timeouts as in worker.properties
we have not set any timeouts??

or is it related to application which is not closing connections properly??

I have gone through many forums for this issue...

setting value for CFLAGS=NO_LINGERCLOSE and then building apache again..

whether increasing the ulimit (no of open files) help ??

Please help as this issue is impacting production servers...

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

--- Comment #4 from Hiren Patel <hi...@yahoo.com> 2012-03-09 10:50:08 UTC ---
Created attachment 28446
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28446
ps output

output of ps command...

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

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

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

--- Comment #1 from Eric Covener <co...@gmail.com> 2012-02-24 12:20:31 UTC ---
please collect and post periodic backtraces and ps output.

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

--- Comment #3 from Hiren Patel <hi...@yahoo.com> 2012-03-09 10:45:41 UTC ---
Created attachment 28445
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28445
updated backtrace output of gdb

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

Hiren Patel <hi...@yahoo.com> changed:

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

-- 
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 52759] Apache httpd child process consuming high CPU Utilization.

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

--- Comment #7 from Rainer Jung <ra...@kippdata.de> 2012-03-10 10:55:03 UTC ---
I don't see any relation to mod_jk settings. The stacks show the code is
looping in the HTTPS handling of the client/browser connection. The lsof output
shows, that the connection no longer exists. So it seems some error condition
is not handled properly around OpenSSL/mod_ssl.

Your Apache and OpenSSL versions are pretty old. Any chance to update and
retest? It might well be some problem fixed long ago.

Regards,

Rainer

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