httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dave selby" <dave6...@googlemail.com>
Subject [users@httpd] apache 5 x load, 15 x CPU load - whats happening ?
Date Tue, 11 Nov 2008 21:12:50 GMT
Hi All,

I have apache2 running AOK serving a web page that calls a xmlhttp
request every second and downloads a jpeg image approx 28k every
second. top reveals ...

3.3% CPU and 0.8% Memory

16089 dave      20   0  241m  85m  29m R  7.3  6.8   6:32.20 firefox-2-bin
31187 www-data  20   0 24956  10m 3152 S  3.3  0.8   0:13.96 apache2
31350 dave      20   0 36208 4356 1964 S  1.3  0.3   0:25.88 motion
 5820 root      20   0  326m  64m 6324 S  1.0  5.1   4:19.26 Xorg
 3546 dave      20   0  2308 1144  852 R  0.7  0.1   0:00.02 top
 5506 root      15  -5     0    0    0 S  0.7  0.0   0:10.90 kondemand/0
 5731 messageb  20   0  2824 1220  792 S  0.7  0.1   0:08.30 dbus-daemon

At certain times the web page calls the same xmlhttp request 5 times a
second and downloads a jpeg of approx 28k five time a second. I
expected CPU to be about
15 - 20%. Top reveals ...

31184 www-data  20   0 24972  10m 3156 R 24.6  0.8   0:14.84 apache2
31186 www-data  20   0 24952  10m 3156 S 24.6  0.8   0:15.02 apache2
16089 dave      20   0  241m  85m  29m S 20.6  6.8   6:28.24 firefox-2-bin
31350 dave      20   0 36208 4356 1964 S  7.0  0.3   0:25.24 motion
 5820 root      20   0  326m  64m 6324 S  4.3  5.1   4:18.46 Xorg
15027 dave      20   0  2308 1144  852 R  0.7  0.1   0:17.18 top

I now have 2 x apache processes each pulling 24.6% ie 50% of the CPU !

This is causing real problems. Has anyone any ideas as to why the load
has increases exponentially ?
Can anyone give me a pointer as to where to look to solve this ?

Cheers

Dave





-- 

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.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


Mime
View raw message