httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Easter" <richard.eas...@purplesquared.co.uk>
Subject [users@httpd] Apache CPU/Memory Usage
Date Mon, 23 Feb 2004 20:36:45 GMT
Hello,

I am new to these lists and hope a similar question hasn't been asked
before. I have searched, but do not seem to have found any similar ones.

I have a RH7.2 box (Dual Xeon 2G Processors, 1GB RAM, 40GB hard drive,
running 2.4.18-27.7.xsmp kernel) that has been running fine for
approximately 70 days, but recently crashing on a more and more frequent
basis. On the occassions that it does crash, I am able to SSH into the
box, but most commands (including reboot!) will simply hang, whilst the
load average increases to ridiculously high levels - I have seen it rise
to levels as high as 900 - before the server simply dies and stops
responding, upon which a power cycle is required.

Upon restarting, there are no error messages to be found concerning the
crash - it just looks like everything froze.

Tonight the server crashed twice. After the first crash I was viewing
top and caught the following:

  7:25pm  up 4 min,  1 user,  load average: 21.72, 6.24, 2.20
475 processes: 474 sleeping, 4 running, 0 zombie, 0 stopped
CPU0 states:  7.12% user,  8.18% system,  0.0% nice, 84.5% idle
CPU1 states:  4.19% user,  5.20% system,  0.0% nice, 89.31% idle
CPU2 states: 21.30% user, 11.30% system,  0.1% nice, 66.8% idle
CPU3 states:  8.6% user, 10.25% system,  0.0% nice, 81.4% idle
Mem:  1030500K av, 1021200K used,    9300K free,       0K shrd,    1384K
buff
Swap: 2040212K av,  833872K used, 1206340K free                   14520K
cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
18223 #9302     24   0 1180M 735M  2120 D    44.3 73.1   0:27 httpd
   11 root      16   0     0    0     0 DW    6.6  0.0   0:01 kswapd
31720 root      17   0  1132 1104  1020 R     1.7  0.1   0:00 xinetd
31719 root      16   0  1132 1104  1016 R     1.5  0.1   0:00 xinetd
31544 root      16   0  1360 1264   948 R     0.5  0.1   0:00 top
 4820 #5902     16   0  4952 4908  4392 S     0.4  0.4   0:00 httpd
31634 #8300     15   0  1112  896   808 S     0.4  0.0   0:00 webalizer
 7721 #9302     15   0  3236 1912  1784 S     0.3  0.1   0:00 httpd
31708 root      15   0   692  692   596 D     0.3  0.0   0:00 vm-pop3d
  838 root      16   0  1120 1096  1024 S     0.1  0.1   0:00 xinetd
 7715 #9302     15   0  3436 1896  1892 S     0.1  0.1   0:00 httpd
 7722 #9302     15   0  3236 1940  1784 S     0.1  0.1   0:00 httpd
 9809 #8302     15   0  9152 5292  5020 D     0.1  0.5   0:00 httpd
31633 #8300     15   0  1108  892   804 S     0.1  0.0   0:00 webalizer
31714 #9302     15   0  3436 2120  2080 D     0.1  0.2   0:00 httpd

The server froze very soon after and a power cycle was needed.

I am running Apache 1.3.22 (patched for the chunk handling exploit). The
amount of memory that the above httpd process is very concerning and I'm
sure must be why the server crashed tonight. Does anybody have any idea
why this may be happening? Would an upgrade to 1.3.29 help cure it?

This has me baffled and any pointers that you may have would be greatly
appreciated.

Many thanks,

Richard



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