[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.6

Apache using high CPU usage - optimize httpd.conf settings?

Asked by mixart in Apache Web Server

Tags: apache

My server is really working hard since some site upgrades. There are many httpd services running and they're using up big CPU usage.

I'm thinking my http.conf file may have some bad values that could be contributing to this.

Settings below...

Timeout 15
KeepAlive On
MaxKeepAliveRequests 500

KeepAliveTimeout 2

<IfModule prefork.c>
StartServers       10
MinSpareServers    1
MaxSpareServers    5
ServerLimit       50
MaxClients        50
MaxRequestsPerChild  100
</IfModule>

<IfModule worker.c>
StartServers       10
MaxClients        50
MinSpareThreads    1
MaxSpareThreads    4
ThreadsPerChild     25
MaxRequestsPerChild  100
</IfModule>

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
top - 19:22:43 up 1 day, 17:02,  1 user,  load average: 3.34, 4.03, 4.09
Tasks:  68 total,   1 running,  67 sleeping,   0 stopped,   0 zombie
Cpu(s): 24.1% us,  8.1% sy,  0.0% ni, 65.1% id,  2.7% wa,  0.0% hi,  0.0% si
Mem:   1048576k total,   920984k used,   127592k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached
 
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
30182 apache    15   0 42656  25m 3304 S   50  2.5   0:05.22 httpd
22130 mysql     15   0  503m 254m 5892 S   19 24.8  37:15.54 mysqld
 1578 apache    17   0 27160 9968 2936 S    5  1.0   0:02.00 httpd
 1571 apache    16   0 36188  18m 3484 S    5  1.9   0:01.66 httpd
30183 apache    15   0 42704  25m 3504 S    4  2.5   0:04.14 httpd
 1537 apache    15   0 41828  24m 3488 S    4  2.4   0:02.09 httpd
32436 apache    15   0 41840  24m 3512 S    2  2.4   0:02.34 httpd
32458 apache    15   0 41812  24m 3504 S    2  2.4   0:02.68 httpd
 1959 apache    15   0 36592  19m 3492 S    2  1.9   0:00.94 httpd
19701 apache    15   0 42688  25m 3512 S    2  2.5   0:13.33 httpd
32272 apache    15   0 41828  24m 3508 S    2  2.4   0:04.51 httpd
32408 apache    15   0 41780  24m 3296 S    2  2.4   0:06.01 httpd
32411 apache    15   0 42660  25m 3504 S    2  2.5   0:02.65 httpd
 1475 apache    15   0 41820  24m 3488 S    2  2.4   0:02.48 httpd
25684 apache    15   0 42664  25m 3508 S    2  2.5   0:07.82 httpd
30178 apache    15   0 42672  25m 3504 S    2  2.5   0:05.10 httpd
32278 apache    15   0 27372 9.9m 2996 S    2  1.0   0:02.18 httpd
32462 apache    15   0 26316 9400 3216 S    2  0.9   0:00.76 httpd
 3591 apache    15   0 26252 9032 2924 S    2  0.9   0:00.09 httpd
 3589 apache    16   0 26256 8944 2816 S    1  0.9   0:00.10 httpd
25637 root      18   0  221m  97m  11m S    1  9.6   2:15.92 java
[+][-]02/26/08 05:27 AM, ID: 20984033Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: Apache Web Server
Tags: apache
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 3
Solution Grade: A
 
[+][-]03/11/08 02:12 AM, ID: 21094019Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/11/08 07:43 PM, ID: 21102588Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 / EE_QW_2_20070628