You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Kjell Grindalen <kj...@sio.no> on 2005/11/22 15:17:42 UTC

[users@httpd] High cpu load on apache

Hi everyone!

I am runninng apache-2.0.55 on a Solaris 9 SPARC server.
I use the server a a frontend for my websphere 5.1 server
My configure looks like this

./configure --prefix=/usr/local/apache_prod --with-mpm=prefork
--enable-info --enable-so --enable-rewrite --enable-proxy
--enable-static-rotatelogs

My problem is that after a while, some requests makes one or sometimes
more, of my httpd servers hit the roof cpu-wise.
And it stays there til I kille the process.

I have tried to apply the following patch, with no success

Ohttp://people.apache.org/~wrowe/httpd-2.0-proto-timeout.patch


A truss on the process only gives what you can see down below.


brk(0x005C2D98)                                 = 0
brk(0x005C4D98)                                 = 0
brk(0x005C4D98)                                 = 0
brk(0x005C6D98)                                 = 0
brk(0x005C6D98)                                 = 0
brk(0x005C8D98)                                 = 0
brk(0x005C8D98)                                 = 0
brk(0x005CAD98)                                 = 0
brk(0x005CAD98)                                 = 0
brk(0x005CCD98)                                 = 0
brk(0x005CCD98)                                 = 0
brk(0x005CED98)                                 = 0
brk(0x005CED98)                                 = 0
brk(0x005D0D98)                                 = 0
brk(0x005D0D98)                                 = 0
brk(0x005D2D98)                                 = 0
brk(0x005D2D98)                                 = 0
brk(0x005D4D98)                                 = 0
brk(0x005D4D98)                                 = 0
brk(0x005D6D98)                                 = 0
brk(0x005D6D98)                                 = 0
brk(0x005D8D98)                                 = 0
brk(0x005D8D98)                                 = 0
brk(0x005DAD98)                                 = 0
brk(0x005DAD98)                                 = 0
brk(0x005DCD98)                                 = 0
brk(0x005DCD98)                                 = 0
brk(0x005DED98)                                 = 0
brk(0x005DED98)                                 = 0
brk(0x005E0D98)                                 = 0
brk(0x005E0D98)                                 = 0

Anyone have an idea what is wrong?


Mvh

Kjell Grindalen


This e-mail and any attachments may contain confidential and
privileged information. If you are not the intended recipient,
please notify the sender immediately by return e-mail, delete this
e-mail and destroy any copies. Any dissemination or use of this
information by a person other than the intended recipient is
unauthorized and may be illegal.

Re: [users@httpd] High cpu load on apache

Posted by Tony Di Croce <di...@gmail.com>.
This looks to me like something is attempting to allocate memory in a loop,
until the request succeeds. But it's never succeeding.

On 11/22/05, Kjell Grindalen <kjell.grindalen@sio.no > wrote:
>
> Hi everyone!
>
> I am runninng apache-2.0.55 on a Solaris 9 SPARC server.
> I use the server a a frontend for my websphere 5.1 server
> My configure looks like this
>
> ./configure --prefix=/usr/local/apache_prod --with-mpm=prefork
> --enable-info --enable-so --enable-rewrite --enable-proxy
> --enable-static-rotatelogs
>
> My problem is that after a while, some requests makes one or sometimes
> more, of my httpd servers hit the roof cpu-wise.
> And it stays there til I kille the process.
>
> I have tried to apply the following patch, with no success
>
> Ø http://people.apache.org/~wrowe/httpd-2.0-proto-timeout.patch<http://people.apache.org/%7Ewrowe/httpd-2.0-proto-timeout.patch>
>
> A truss on the process only gives what you can see down below.
>
> brk(0x005C2D98)                                 = 0
> brk(0x005C4D98)                                 = 0
> brk(0x005C4D98)                                 = 0
> brk(0x005C6D98)                                 = 0
> brk(0x005C6D98)                                 = 0
> brk(0x005C8D98)                                 = 0
> brk(0x005C8D98)                                 = 0
> brk(0x005CAD98)                                 = 0
> brk(0x005CAD98)                                 = 0
> brk(0x005CCD98)                                 = 0
> brk(0x005CCD98)                                 = 0
> brk(0x005CED98)                                 = 0
> brk(0x005CED98)                                 = 0
> brk(0x005D0D98)                                 = 0
> brk(0x005D0D98)                                 = 0
> brk(0x005D2D98)                                 = 0
> brk(0x005D2D98)                                 = 0
> brk(0x005D4D98)                                 = 0
> brk(0x005D4D98)                                 = 0
> brk(0x005D6D98)                                 = 0
> brk(0x005D6D98)                                 = 0
> brk(0x005D8D98)                                 = 0
> brk(0x005D8D98)                                 = 0
> brk(0x005DAD98)                                 = 0
> brk(0x005DAD98)                                 = 0
> brk(0x005DCD98)                                 = 0
> brk(0x005DCD98)                                 = 0
> brk(0x005DED98)                                 = 0
> brk(0x005DED98)                                 = 0
> brk(0x005E0D98)                                 = 0
> brk(0x005E0D98)                                 = 0
>
> Anyone have an idea what is wrong?
>
> Mvh
>
> Kjell Grindalen
>
> This e-mail and any attachments may contain confidential and
> privileged information. If you are not the intended recipient,
> please notify the sender immediately by return e-mail, delete this
> e-mail and destroy any copies. Any dissemination or use of this
> information by a person other than the intended recipient is
> unauthorized and may be illegal.
>



--
Free Linux Technical Articles
http://www.linuxtecharticles.com

Re: [users@httpd] High cpu load on apache

Posted by Joshua Slive <js...@gmail.com>.
On 11/22/05, Kjell Grindalen <kj...@sio.no> wrote:
> I am runninng apache-2.0.55 on a Solaris 9 SPARC server.
> I use the server a a frontend for my websphere 5.1 server
> My configure looks like this
>
> ./configure --prefix=/usr/local/apache_prod --with-mpm=prefork --enable-info
> --enable-so --enable-rewrite --enable-proxy --enable-static-rotatelogs

And what modules are dynamically loaded?

>
> My problem is that after a while, some requests makes one or sometimes more,
> of my httpd servers hit the roof cpu-wise.
> And it stays there til I kille the process.

> A truss on the process only gives what you can see down below.

Much more useful would be to attach to the process with a debugger to
see what it is really doing.  Some info is at:
http://httpd.apache.org/dev/debugging.html#backtrace

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org