You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Samuel Vogel <sa...@gmx.de> on 2007/08/25 12:31:45 UTC

[users@httpd] Apache taking up all CPU Time

I'm running apache with about 4.000 vHosts on a DualCore 2,6 Opteron 
with 4GB of memory. I'm wondering why Apache takes up all my CPU time:

top - 12:30:56 up 3 days, 20:42,  1 user,  load average: 17.70, 18.06, 17.96
Tasks: 322 total,  22 running, 298 sleeping,   0 stopped,   2 zombie
Cpu(s): 98.2%us,  1.0%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.8%si,  
0.0%st
Mem:   4155428k total,  3934212k used,   221216k free,    30188k buffers
Swap:  2104496k total,    96916k used,  2007580k free,  2561980k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  
COMMAND           
11075 www-data  25   0 99.8m  64m 4176 R   96  1.6 512:46.77 
apache2           
10914 www-data  25   0   99m  65m 4768 R   50  1.6 515:12.66 
apache2           
11055 www-data  25   0 99.9m  65m 4480 R   48  1.6 507:42.93 
apache2           

How can I debug where the problem lies? I'd be very grateful for any help!

Regards,
Samy

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


Re: [users@httpd] Apache taking up all CPU Time

Posted by Samuel Vogel <sa...@gmx.de>.
I tuned the prefork settings and all works well now!
Should have done that before posting here ;)

Vincent Bray schrieb:
> On 25/08/07, Samuel Vogel <sa...@gmx.de> wrote:
>   
>> Actually there are more than 10 instances running.
>> This is just the way the prefork MPM works.
>>
>> Does anybody else have suggestions?
>>     
>
> This page looks somewhat out of date but may help explain how to use
> e.g. strace to see what the server's doing.
>
> http://httpd.apache.org/dev/debugging.html
>
>   

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


Re: [users@httpd] Apache taking up all CPU Time

Posted by Vincent Bray <no...@gmail.com>.
On 25/08/07, Samuel Vogel <sa...@gmx.de> wrote:
> Actually there are more than 10 instances running.
> This is just the way the prefork MPM works.
>
> Does anybody else have suggestions?

This page looks somewhat out of date but may help explain how to use
e.g. strace to see what the server's doing.

http://httpd.apache.org/dev/debugging.html

-- 
noodl

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


Re: [users@httpd] Apache taking up all CPU Time

Posted by Samuel Vogel <sa...@gmx.de>.
Actually there are more than 10 instances running.
This is just the way the prefork MPM works.

Does anybody else have suggestions?

Regards,
Samy

Cameron J. Young (Personal) schrieb:
> Hi there.  
> Not overly farmiliar with Apache on any platform, but would check Apache's
> logfiles for an indication perhaps.
> Any reason that there are three(3) instances of 'apache2' running ?
>
> Cheers,
> Cameron
>
> -----Original Message-----
> From: Samuel Vogel [mailto:samy-delux@gmx.de] 
> Sent: Saturday, 25 August 2007 20:35
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Apache taking up all CPU Time
>
> (P.S. Sorry, something went wrong with the formating of my last mail!)
>
> I'm running apache with about 4.000 vHosts on a DualCore 2,6 Opteron 
> with 4GB of memory. I'm wondering why Apache takes up all my CPU time:
>
> top - 12:30:56 up 3 days, 20:42,  1 user,  load average: 17.70, 18.06, 17.96
> Tasks: 322 total,  22 running, 298 sleeping,   0 stopped,   2 zombie
> Cpu(s): 98.2%us,  1.0%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.8%si,
> 0.0%st
> Mem:   4155428k total,  3934212k used,   221216k free,    30188k buffers
> Swap:  2104496k total,    96916k used,  2007580k free,  2561980k cached
>
>    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 11075 www-data  25   0 99.8m  64m 4176 R   78  1.6 513:21.42 apache2
> 10914 www-data  25   0   99m  65m 4768 R   53  1.6 515:46.01 apache2
> 11055 www-data  25   0 99.9m  65m 4480 R   47  1.6 508:05.30 apache2
>
>      
> How can I debug where the problem lies? I'd be very grateful for any help!
>
> I'm having apache reload it's config files every 15 minutes and the 
> config file is about 4MB in size!
>
> Regards,
> Samy
>
> ---------------------------------------------------------------------
> 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
>
>
>
> ---------------------------------------------------------------------
> 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
>   

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


RE: [users@httpd] Apache taking up all CPU Time

Posted by "Cameron J. Young (Personal)" <ca...@tpg.com.au>.
Hi there.  
Not overly farmiliar with Apache on any platform, but would check Apache's
logfiles for an indication perhaps.
Any reason that there are three(3) instances of 'apache2' running ?

Cheers,
Cameron

-----Original Message-----
From: Samuel Vogel [mailto:samy-delux@gmx.de] 
Sent: Saturday, 25 August 2007 20:35
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache taking up all CPU Time

(P.S. Sorry, something went wrong with the formating of my last mail!)

I'm running apache with about 4.000 vHosts on a DualCore 2,6 Opteron 
with 4GB of memory. I'm wondering why Apache takes up all my CPU time:

top - 12:30:56 up 3 days, 20:42,  1 user,  load average: 17.70, 18.06, 17.96
Tasks: 322 total,  22 running, 298 sleeping,   0 stopped,   2 zombie
Cpu(s): 98.2%us,  1.0%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.8%si,
0.0%st
Mem:   4155428k total,  3934212k used,   221216k free,    30188k buffers
Swap:  2104496k total,    96916k used,  2007580k free,  2561980k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
11075 www-data  25   0 99.8m  64m 4176 R   78  1.6 513:21.42 apache2
10914 www-data  25   0   99m  65m 4768 R   53  1.6 515:46.01 apache2
11055 www-data  25   0 99.9m  65m 4480 R   47  1.6 508:05.30 apache2

     
How can I debug where the problem lies? I'd be very grateful for any help!

I'm having apache reload it's config files every 15 minutes and the 
config file is about 4MB in size!

Regards,
Samy

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



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


Re: [users@httpd] Apache taking up all CPU Time

Posted by Samuel Vogel <sa...@gmx.de>.
(P.S. Sorry, something went wrong with the formating of my last mail!)

I'm running apache with about 4.000 vHosts on a DualCore 2,6 Opteron 
with 4GB of memory. I'm wondering why Apache takes up all my CPU time:

top - 12:30:56 up 3 days, 20:42,  1 user,  load average: 17.70, 18.06, 
17.96
Tasks: 322 total,  22 running, 298 sleeping,   0 stopped,   2 zombie
Cpu(s): 98.2%us,  1.0%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.8%si,  
0.0%st
Mem:   4155428k total,  3934212k used,   221216k free,    30188k buffers
Swap:  2104496k total,    96916k used,  2007580k free,  2561980k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
11075 www-data  25   0 99.8m  64m 4176 R   78  1.6 513:21.42 apache2
10914 www-data  25   0   99m  65m 4768 R   53  1.6 515:46.01 apache2
11055 www-data  25   0 99.9m  65m 4480 R   47  1.6 508:05.30 apache2

     
How can I debug where the problem lies? I'd be very grateful for any help!

I'm having apache reload it's config files every 15 minutes and the 
config file is about 4MB in size!

Regards,
Samy

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