server load help
my server is constantly running a heavy load. i checked top and dont see any big proccess. i did notice that apache is eating 99.9% of the cpu at time. what might i do to fix this?the server is only about two months old. I run a few big image websites. The sites have 10 rows of 5 pics at 100x133. And that server serves all the images for all of my sites. And most the the sites are on another server so its pulling all the images from that server with the heavy load. Its a 2ghz celeron with 512mb ram. The server is also doing a lot of php\mysql. Its a linux rh with cpanel&whm server.
Below is some information I got from WHM.
Apache Server Status:
Server Version: Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.3 FrontPage/5.0.2.2634 mod_ssl/2.8.16 OpenSSL/0.9.7a
Server Built: Nov 22 2003 09:58:28
--------------------------------------------------------------------------------
Current Time: Sunday, 01-Feb-2004 13:16:05 PST
Restart Time: Sunday, 01-Feb-2004 03:04:29 PST
Parent Server Generation: 0
Server uptime: 10 hours 11 minutes 36 seconds
Total accesses: 299164 - Total Traffic: 2.1 GB
CPU Usage: u78.06 s58.17 cu0 cs0 - .371% CPU load
8.15 requests/sec - 61.4 kB/second - 7.5 kB/request
16 requests currently being processed, 60 idle servers
-
Cpu/Memory/Mysql Usage:
User Domain %CPU %MEM Mysql Processes
root 4.83 5.82 2.0
Top Process %CPU 42.0 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Top Process %CPU 4.3 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
Top Process %CPU 4.2 /usr/bin/perl /usr/bin/mrtg /etc/mrtg/mrtg.cfg
mysite mysite.com 1.05 5.72 0.1
Top Process %CPU 6.9 gzip -c /usr/local/apache/domlogs/mysite.com
Top Process %CPU 5.0 httpd [www.mysite.com] [/cam/eroticflower/1.jpg]
Top Process %CPU 4.0 httpd [www.mysite.com] [/cam/sc.gif]
nobody 0.03 0.18 0.0
Top Process %CPU 5.0 /usr/local/apache/bin/httpd -DSSL
Top Process %CPU 4.0 /usr/local/apache/bin/httpd -DSSL
Top Process %CPU 3.0 /usr/local/apache/bin/httpd -DSSL
mailman 0.01 0.71 0.0
Top Process %CPU 0.6 /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/disabled
Top Process %CPU 0.4 /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/senddigests
Top Process %CPU 0.3 /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/checkdbs
mysql 0.00 3.59 0.0
Top Process %CPU 0.1 /usr/sbin/mysqld --basedir/ --datadir/var/lib/mysql --usermysql --pid-file/var/lib/mysql/srv1.mysite.com.pid --skip-locking
xfs 0.00 0.00 0.0
wnn 0.00 0.00 0.0
cpanel 0.00 0.02 0.0
sshd 0.00 0.00 0.0
mailnull 0.00 0.00 0.0
named 0.00 0.59 0.0
bin 0.00 0.00 0.0
-
Service Status:
Everything is green except for the two listed below.
Server Load 7.75 (1 cpu)
Memory Used 93.3 %
-
Server Information:
Processor Info
Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Celeron(R) CPU 2.00GHz
Processor #1 speed: 2019.936 MHz
Processor #1 cache size: 8 KB
Memory Information
Memory: 510344k/523200k available (1347k kernel code, 10296k reserved, 999k data, 132k init, 0k highmem)
System Information
Linux srv1.maxiti.net 2.4.20-6 #1 Thu Feb 27 10:06:59 EST 2003 i686 i686 i386 GNU/Linux
Physical Drives
hda: WDC WD800JB-00ETA0, ATA DISK drive
hda: host protected area => 1
hda: 156301488 sectors (80026 MB) w/8192KiB Cache, CHS=9729/255/63, UDMA(100)
Current Memory Usage
total used free shared buffers cached
Mem: 512800 503788 9012 0 2304 19912
-/+ buffers/cache: 481572 31228
Swap: 1052216 508996 543220
Total: 1565016 1012784 552232
Current Disk Usage
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 992M 155M 786M 17% /
/dev/hda1 99M 9.0M 85M 10% /boot
/dev/hda8 52G 376M 49G 1% /home
none 251M 0 251M 0% /dev/shm
/dev/hda5 992M 33M 909M 4% /tmp
/dev/hda2 9.7G 5.2G 4.1G 57% /usr
/dev/hda3 7.8G 395M 7.0G 6% /var
Here is the commands top's output.
13:27:50 up 46 days, 13:17, 1 user, load average: 5.27, 6.35, 6.91
142 processes: 135 sleeping, 5 running, 2 zombie, 0 stopped
CPU states: 1.9% user 1.4% system 0.0% nice 0.0% iowait 96.5% idle
Mem: 512800k av, 506292k used, 6508k free, 0k shrd, 2600k buff
52920k actv, 15324k in_d, 10608k in_c
Swap: 1052216k av, 506108k used, 546108k free 12808k cached
Thanks in advance!
Alt