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.
3 3019 Luuk 1,047
Recognized Expert Top Contributor
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?
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.
Luuk 1,047
Recognized Expert Top Contributor
And now you only have to find out which processes take too long to complete 'in-time' ?
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 server but the typical values
returned by "uptime" (number of queued processes) are not as easy to
understand as a simple %.
Any idea? Thank you in advance,
--
|
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 can be read by a program
running as an ordinary user (not administrator)?
I'm willing to write programs in Win32 or .NET, or use utilities, or
anything reasonable. I want to end up with something that can run whenever
a user logs on, to tell him...
|
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) - images on
remote servers. The database simply select + update views#.
I was considering an upgrade to a bigger server with 8-10G RAM (mayby a
dual xeon) or a cluster load balanced solution. The traffic could grow
in the future!
Also, I'm not...
|
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 out everything in the query programs, all they do
is sleep, and the associated postmaster still sucks up 15% - 20% CPU.
Computer is a P4 /w 1Gig memory, all disk access is local. RH9 /w stock
postgresql-7.3 installed.
|
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 application
under heavy load.
When increasing the number of requests, all my memory is filled, and the
Linux server begins to cache and remains frozen.
ab -n 100 -c 10 http://localsite/testscript
| |
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
---------------------------------------------------------------------
PostgreSQL 7.4.1 on i386-portbld-freebsd4.9, compiled by GCC 2.95.4
(1 row)
|
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 hosted by multiple servers
behind a load balancer because of the user load on the system. However,
we've still had times when the servers got over run and Apache maxes
out on the number of httpd processes (257) and falls behind to the
point of...
|
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 completely
ignore max_execution_time, literally running infinitely.
Using PHP 5.2.0, Apache 1.3 and Win XP
Is this normal "bizarre" behavior that can occur within this setup; if
so, what workarounds have you found to combat this, other than the...
|
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 things:
- MySQL : as much as possible, he keeps query results in RAM, but
apparently, each is session-specific, which means that results can't
be shared with other users.
|
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 help me how to call the appropriate function and how to load the kernel32.dll into my program.
if there is any other way to calculate the load in windows(not in unix or linux), please let me know the exact function that can be used.
thank you.
with...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |