PROBLEM - High Load
************************************************
Loads have been around 9.0 and average around 4.0
I have plenty of SWAP, just high server loads
I added Mail Scanner last week. The loads were high before then, I just notice them more now.
I want to keep MailScanner (awesome program).
I don't mind getting more RAM if needed, or upgrading to a Pentium Processor if needed.
I just want to be certain that I'm doing all that I can do to run the server efficiently.
Server Specs
************************************************
Processor - 1.7 Celeron
RAM - 512
Websites - 25
10 use MySQL databases with messageboards with persistent connections
DATA
************************************************
WHM Memory Usage
yeilds:
TOP snapshot
Top Memory Consuming Processes
ps aux | head -1;ps aux --no-headers| sort -rn +3 | head
yields:
Top CPU Consuming Processes
ps aux | head -1;ps aux --no-headers | sort -rn +2
yields:
************************************************
Loads have been around 9.0 and average around 4.0
I have plenty of SWAP, just high server loads
I added Mail Scanner last week. The loads were high before then, I just notice them more now.
I want to keep MailScanner (awesome program).
I don't mind getting more RAM if needed, or upgrading to a Pentium Processor if needed.
I just want to be certain that I'm doing all that I can do to run the server efficiently.
Server Specs
************************************************
Processor - 1.7 Celeron
RAM - 512
Websites - 25
10 use MySQL databases with messageboards with persistent connections
DATA
************************************************
WHM Memory Usage
yeilds:
Code:
11-19-2006
User.........Domain...............%CPU............%MEM..........Mysql Processes
root..............................22.74............3.78.........2.0
Top Process..%CPU 66.5............gzip
Top Process..%CPU 56.0............pkgacct - americae
Top Process..%CPU 55.8............gzip
mailnull..........................15.92............16.35........0.0
Top Process..%CPU 73.0............MailScanner: checking with Spam Lists
Top Process..%CPU 72.0............MailScanner: checking with SpamAssassin
Top Process..%CPU 53.0............MailScanner: virus scanning
Code:
12:25pm up 3 days, 1:42, 1 user, load average: 3.67, 2.43, 3.38
140 processes: 133 sleeping, 4 running, 2 zombie, 1 stopped
CPU states: 2.4% user, 18.8% system, 65.3% nice, 13.3% idle
Mem: 506048K av, 477336K used, 28712K free, 0K shrd, 23824K buff
Swap: 2048276K av, 477912K used, 1570364K free 79948K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
22559 mailnull 16 8 0 0 0 Z N 68.0 0.0 0:01 MailScanner <defu
18829 mailnull 13 8 74708 13M 1968 D N 4.4 2.8 0:19 MailScanner: wait
22560 root 13 8 3108 3108 2240 S N 3.9 0.6 0:00 /usr/sbin/exim -C
22562 oakheirl 13 8 6444 6444 3424 D N 3.4 1.2 0:00 /usr/local/cpanel
22558 mailnull 9 0 2728 2652 1876 D 2.9 0.5 0:00 /usr/sbin/exim -b
15 root 9 0 0 0 0 DW 0.4 0.0 1:54 kjournald
19290 nobody 9 0 9288 5524 1892 S 0.4 1.0 0:03 /usr/local/apache
22499 mailnull 13 8 72664 31M 1892 D N 0.4 6.3 0:00 MailScanner: viru
22556 root 10 0 1080 1080 824 R 0.4 0.2 0:00 top
22561 oakheirl 13 8 3148 3148 2272 S N 0.4 0.6 0:00 /usr/sbin/exim -C
1 root 8 0 160 116 92 S 0.0 0.0 0:07 init [3]
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 9 0 0 0 0 SW 0.0 0.0 0:00 kapmd
Top Memory Consuming Processes
ps aux | head -1;ps aux --no-headers| sort -rn +3 | head
yields:
Code:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
oakheirl 11275 0.0 6.4 70780 32852 ? TN 07:38 0:10 /usr/local/cpanel
mysql 5407 0.2 5.9 79060 30160 ? SN Nov17 10:14 /usr/sbin/mysqld
mysql 5369 0.2 5.9 79060 30160 ? SN Nov17 10:07 /usr/sbin/mysqld
mysql 3681 0.2 5.9 79060 30160 ? SN Nov17 8:52 /usr/sbin/mysqld
mysql 3217 0.2 5.9 79060 30160 ? SN Nov17 9:05 /usr/sbin/mysqld
mysql 3210 0.2 5.9 79060 30160 ? SN Nov17 10:09 /usr/sbin/mysqld
mysql 3159 0.2 5.9 79060 30160 ? SN Nov17 10:39 /usr/sbin/mysqld
mysql 3001 0.0 5.9 79060 30160 ? SN Nov17 0:17 /usr/sbin/mysqld
mysql 2998 0.0 5.9 79060 30160 ? SN Nov17 0:00 /usr/sbin/mysqld
mysql 2928 0.0 5.9 79060 30160 ? SN Nov17 0:05 /usr/sbin/mysqld
Top CPU Consuming Processes
ps aux | head -1;ps aux --no-headers | sort -rn +2
yields:
Code:
[email protected] [~]# ps aux | head -1;ps aux --no-headers | sort -rn +2
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
mailnull 22707 2.4 0.0 0 0 ? ZN 12:26 0:01 [MailScanner <def
mailnull 22530 1.4 0.0 0 0 ? ZN 12:25 0:01 [MailScanner <def
mailnull 18829 1.4 2.5 78036 13036 ? SN 12:03 0:20 MailScanner: wait
mailnull 18784 1.3 2.2 76232 11572 ? SN 12:02 0:19 MailScanner: wait
mailnull 18824 1.1 2.2 76340 11580 ? SN 12:03 0:16 MailScanner: wait
mailnull 22743 1.0 0.2 4984 1264 ? S 12:27 0:00 /usr/sbin/exim -b
root 22260 0.4 0.3 3532 1700 ? S 12:24 0:00 /usr/sbin/sshd
nobody 19291 0.4 1.3 17812 6988 ? S 12:06 0:06 /usr/local/apache
nobody 19308 0.3 1.2 17268 6276 ? S 12:06 0:03 /usr/local/apache
.
.
.
cpanel 24359 0.0 0.1 2640 700 ? SN 09:05 0:00 /usr/bin/stunnel-
[email protected] [~]#