473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Load average goes up to >20 with lots of Apache processes.

My web server is running Apache/2.2.3.

At irregular intervals, during the past few months, the load average sometimes shot up to 20 for many hours. Normally, it should range between 0 to 2. I could not find the cause.

Top command has shown that a number of Apache processes hogging ~50% CPU each.

I searched those PIDs in the Apache server-status module, here are some of them:

Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
2-0 17835 0/1/3577 R 0.11 1376 209 0 0 72.22 ? ? ..reading..
4-0 13341 0/31/271 R 0.24 40419 0 0 1 8.64 ? ? ..reading..
6-0 16598 0/9/54 R 0.01 43397 7881 0 0.73 1.82 ? ? ..reading..
9-0 17104 0/4/912 R 0.11 33214 38 0 0 20.01 ? ? ..reading..
15-0 16590 1/12/2000 R 0.14 43449 8937 0 0.06 0.68 ? ? ..reading..
16-0 25771 0/1/823 R 0 33668 176 0 0.17 19 ? ? ..reading..
21-0 3389 0/43/2588 R 0.46 12143 3373 0 0.43 51.22 ? ? ..reading..
25-0 28031 0/2/1042 R 0.14 29686 167 0 0 21.75 ? ? ..reading..
26-0 6242 0/29/2434 R 0.15 12113 1776 0 0.72 53.63 ? ? ..reading..
...

The last 3 columns show no information about client / VHost, and there requests are all "..reading..".

The SS values (Seconds since beginning of most recent request) are all abnormally large, with an average of 6 hours.

How should I verify how the process was generated? Should I kill the processes? (but I'm afraid of breaking something inside)

Thanks.
Sep 26 '12 #1
3 2997
Luuk
1,047 Expert 1GB
My guess is that you did not give enough info to solve this problem.

Please check the error log for you apache server, and google for 'apache server status reading'

Also, did you read Apache Performance Tuning ?

Does your apache use/run PHP scripts?
Sep 29 '12 #2
Hi, I have found the reason. (kinda stupid)
A previous sysadmin set 'Timeout' as a million in apache conf. Some processes never got timed out.
Oct 7 '12 #3
Luuk
1,047 Expert 1GB
And now you only have to find out which processes take too long to complete 'in-time' ?
Oct 7 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Alvaro G Vicario | last post by:
I've seen some sites that display a "Server load" value in percentage. I've tried to google out the formula they may be using but I couln't find it. I'd like to implement such a thing in a Linux...
5
by: Michael A. Covington | last post by:
We have a computer that multiple people use through Remote Desktop. Is there a measurement analogous to UNIX's "load average" -- average number of processes trying to run, or something -- that...
0
by: HD | last post by:
I have an adserver - redhat p4 2GB ram - during peak time the server crashes with hundreds of queued processes (load average 70.00!!!). It serves approx. 1.000.000 impressions per day (page views)...
5
by: Chris Webster | last post by:
I have one process which writes a single float into 300 columns once per second. I then run 4 process, from remote computers, to query a small subset of the latest row. I have even commented...
19
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the...
6
by: Lee Harr | last post by:
I have a database where I remove the schema public. When I try to use the createlang script, it fails like this ... >createdb foo CREATE DATABASE >psql foo -c "select version()" version...
5
by: writeson | last post by:
Hi all, I'm wondering if anyone has tried a scenario that I'm thinking of. At my job we've got a web based product provided by Apache running PHP that accesses MySQL. This web application is...
2
by: comp.lang.php | last post by:
I have an app that is going berzerk on its own; without any code or environmental changes of any kind, for some bizarre reason it will randomly just hang, spawn multiple Apache processes and...
39
by: Gilles Ganault | last post by:
Hello, I'm no LAMP expert, and a friend of mine is running a site which is a bit overloaded. Before upgrading, he'd like to make sure there's no easy way to improve efficiency. A couple of...
0
by: shyaminf | last post by:
i learnt that it is possible to know the average load in windows using kernel32.dll. but i am not sure with the function name in kernel32.dll which gives me the average load of the system. please...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.