My site has recently been featured in several magazines and newspapers, and is receiving a VERY HIGH number of hits.
The problem is pages failing to load, and the processor on the 'top' command showing 0% idle for a very long time.
The site is PHP based, and uses a MySQL server.
I have run an optimize on the database, but this hasn't help.
Any help appreciated.
---- Server Specs ----
Athlon – 1.7Ghz
512 MB Ram
1x 80GB HDD
Fedora
Cpanel/WHM
MySQL 4.1.21
Apache 1.3.37
--------------------
free -m
total used free shared buffers cached
Mem: 720 316 404 0 6 81
-/+ buffers/cache: 228 492
Swap: 988 248 740
--------------------
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1692 364 ? S Oct05 0:02 init [3]
root 2 0.0 0.0 0 0 ? S Oct05 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Oct05 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Oct05 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S< Oct05 0:00 [events/0]
root 6 0.0 0.0 0 0 ? S< Oct05 0:00 [khelper]
root 7 0.0 0.0 0 0 ? S< Oct05 0:00 [kthread]
root 9 0.0 0.0 0 0 ? S< Oct05 0:02 [kblockd/0]
root 10 0.0 0.0 0 0 ? S< Oct05 0:00 [kacpid]
root 59 0.0 0.0 0 0 ? S< Oct05 0:00 [khubd]
root 181 0.0 0.0 0 0 ? S< Oct05 0:00 [aio/0]
root 182 0.0 0.0 0 0 ? S< Oct05 0:00 [xfslogd/0]
root 183 0.0 0.0 0 0 ? S< Oct05 0:00 [xfsdatad/0]
root 184 0.0 0.0 0 0 ? S< Oct05 0:00 [xfsbufd]
root 180 0.0 0.0 0 0 ? S Oct05 0:33 [kswapd0]
root 770 0.0 0.0 0 0 ? S< Oct05 0:00 [kseriod]
root 861 0.0 0.0 0 0 ? S< Oct05 0:00 [ata/0]
root 894 0.0 0.0 0 0 ? S< Oct05 0:00 [kcryptd/0]
root 895 0.0 0.0 0 0 ? S< Oct05 0:00 [kmpathd/0]
root 896 0.0 0.0 0 0 ? S< Oct05 0:00 [kmirrord]
root 900 0.0 0.0 0 0 ? S Oct05 0:02 [kjournald]
root 2736 0.0 0.0 0 0 ? S Oct05 0:00 [kjournald]
root 2737 0.0 0.0 0 0 ? S Oct05 0:15 [kjournald]
root 2738 0.0 0.0 0 0 ? S Oct05 0:00 [kjournald]
root 2739 0.0 0.0 0 0 ? S Oct05 0:05 [kjournald]
root 2740 0.0 0.0 0 0 ? S Oct05 0:08 [kjournald]
root 2815 0.0 0.0 1588 280 ? S<s Oct05 0:00 udevd
named 3323 0.6 1.3 39456 9860 ? Ssl Oct05 8:49 /usr/sbin/named -u named
root 3338 0.0 0.0 1596 460 ? Ss Oct05 0:04 syslogd -m 0
root 3342 0.0 0.0 1540 344 ? Ss Oct05 0:00 klogd -x
root 3379 0.0 0.0 1528 200 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -facili
root 3380 0.0 0.0 1848 344 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3381 0.0 0.0 1848 296 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3382 0.0 0.0 1848 296 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3383 0.0 0.0 1848 220 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3384 0.0 0.0 1848 296 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3385 0.0 0.0 1848 220 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3454 0.0 0.0 1824 408 ? S Oct05 0:00 /usr/sbin/smartd
root 3463 0.0 0.0 1536 280 ? Ss Oct05 0:00 /usr/sbin/acpid
root 3493 0.0 0.0 3988 240 ? Ss Oct05 0:00 /usr/sbin/sshd
root 3505 0.0 0.0 2152 392 ? Ss Oct05 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 3514 0.0 0.0 4292 388 ? S Oct05 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-fi
mysql 3538 10.4 3.7 148692 27772 ? Sl Oct05 145:38 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=m
root 3584 0.0 0.0 1528 272 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=i
root 3585 0.0 0.0 1636 368 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 3593 0.0 0.0 1532 148 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -na
root 3594 0.0 0.0 1632 288 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 3601 0.0 0.0 1532 276 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=p
root 3602 0.0 0.0 1632 364 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 3610 0.0 0.0 1528 148 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -start -na
root 3611 0.0 0.0 1632 288 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 4029 0.0 0.0 17020 184 ? Ss Oct05 0:00 /usr/sbin/clamd
root 4139 0.0 0.3 25588 2580 ? Ss Oct05 0:08 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/s
root 4149 0.1 2.1 50844 15752 ? Ssl Oct05 1:26 /usr/sbin/clamd
mailnull 4153 0.0 0.0 7288 416 ? Ss Oct05 0:00 /usr/sbin/exim -bd -oX 26
mailnull 4159 0.0 0.0 7284 524 ? Ss Oct05 0:01 /usr/sbin/exim -bd -q60m
mailnull 4164 0.0 0.0 7276 360 ? Ss Oct05 0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
root 4169 0.1 0.2 8880 1496 ? S Oct05 1:34 lfd - sleeping
root 4235 0.0 0.0 4460 448 ? Ss Oct05 0:00 crond
root 4251 0.0 0.0 1700 320 ? Ss Oct05 0:00 /usr/sbin/atd
root 4375 0.0 0.1 3120 816 ? S Oct05 0:02 antirelayd
root 4616 0.0 0.0 6160 336 ? Ss Oct05 0:00 pure-ftpd (SERVER)
root 4631 0.0 0.0 5700 304 ? S Oct05 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureau
dbus 5051 0.0 0.0 2308 268 ? Ss Oct05 0:00 dbus-daemon-1 --system
root 5105 0.0 0.1 5940 1064 ? Ss Oct05 0:03 hald
root 5195 0.0 0.0 1556 280 ? Ss Oct05 0:00 /usr/sbin/portsentry -tcp
root 5334 0.0 0.0 1532 268 tty1 Ss+ Oct05 0:00 /sbin/mingetty tty1
root 5335 0.0 0.0 1528 268 tty2 Ss+ Oct05 0:00 /sbin/mingetty tty2
root 5336 0.0 0.0 1528 268 tty3 Ss+ Oct05 0:00 /sbin/mingetty tty3
root 5337 0.0 0.0 1528 268 tty4 Ss+ Oct05 0:00 /sbin/mingetty tty4
root 5338 0.0 0.0 1532 268 tty5 Ss+ Oct05 0:00 /sbin/mingetty tty5
root 5602 0.0 0.0 1528 268 tty6 Ss+ Oct05 0:00 /sbin/mingetty tty6
root 12655 0.0 0.2 11880 2084 ? S Oct05 0:02 chkservd
root 22591 0.0 0.1 6984 1400 ? S 03:31 0:01 cpbandwd
root 22659 0.0 0.1 16860 1384 ? SN 03:31 0:17 cpanellogd - sleeping for logs
mailnull 22676 0.0 0.1 7780 1456 ? S 03:31 0:00 eximstats
mailman 22742 0.0 0.0 10288 500 ? Ss 03:31 0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22743 0.0 0.1 10100 1048 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22744 0.0 0.1 10096 1064 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22745 0.0 0.1 10076 1048 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22746 0.0 0.1 10132 1060 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22751 0.0 0.1 10084 1072 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
The problem is pages failing to load, and the processor on the 'top' command showing 0% idle for a very long time.
The site is PHP based, and uses a MySQL server.
I have run an optimize on the database, but this hasn't help.
Any help appreciated.
---- Server Specs ----
Athlon – 1.7Ghz
512 MB Ram
1x 80GB HDD
Fedora
Cpanel/WHM
MySQL 4.1.21
Apache 1.3.37
--------------------
free -m
total used free shared buffers cached
Mem: 720 316 404 0 6 81
-/+ buffers/cache: 228 492
Swap: 988 248 740
--------------------
ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1692 364 ? S Oct05 0:02 init [3]
root 2 0.0 0.0 0 0 ? S Oct05 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Oct05 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Oct05 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S< Oct05 0:00 [events/0]
root 6 0.0 0.0 0 0 ? S< Oct05 0:00 [khelper]
root 7 0.0 0.0 0 0 ? S< Oct05 0:00 [kthread]
root 9 0.0 0.0 0 0 ? S< Oct05 0:02 [kblockd/0]
root 10 0.0 0.0 0 0 ? S< Oct05 0:00 [kacpid]
root 59 0.0 0.0 0 0 ? S< Oct05 0:00 [khubd]
root 181 0.0 0.0 0 0 ? S< Oct05 0:00 [aio/0]
root 182 0.0 0.0 0 0 ? S< Oct05 0:00 [xfslogd/0]
root 183 0.0 0.0 0 0 ? S< Oct05 0:00 [xfsdatad/0]
root 184 0.0 0.0 0 0 ? S< Oct05 0:00 [xfsbufd]
root 180 0.0 0.0 0 0 ? S Oct05 0:33 [kswapd0]
root 770 0.0 0.0 0 0 ? S< Oct05 0:00 [kseriod]
root 861 0.0 0.0 0 0 ? S< Oct05 0:00 [ata/0]
root 894 0.0 0.0 0 0 ? S< Oct05 0:00 [kcryptd/0]
root 895 0.0 0.0 0 0 ? S< Oct05 0:00 [kmpathd/0]
root 896 0.0 0.0 0 0 ? S< Oct05 0:00 [kmirrord]
root 900 0.0 0.0 0 0 ? S Oct05 0:02 [kjournald]
root 2736 0.0 0.0 0 0 ? S Oct05 0:00 [kjournald]
root 2737 0.0 0.0 0 0 ? S Oct05 0:15 [kjournald]
root 2738 0.0 0.0 0 0 ? S Oct05 0:00 [kjournald]
root 2739 0.0 0.0 0 0 ? S Oct05 0:05 [kjournald]
root 2740 0.0 0.0 0 0 ? S Oct05 0:08 [kjournald]
root 2815 0.0 0.0 1588 280 ? S<s Oct05 0:00 udevd
named 3323 0.6 1.3 39456 9860 ? Ssl Oct05 8:49 /usr/sbin/named -u named
root 3338 0.0 0.0 1596 460 ? Ss Oct05 0:04 syslogd -m 0
root 3342 0.0 0.0 1540 344 ? Ss Oct05 0:00 klogd -x
root 3379 0.0 0.0 1528 200 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -facili
root 3380 0.0 0.0 1848 344 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3381 0.0 0.0 1848 296 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3382 0.0 0.0 1848 296 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3383 0.0 0.0 1848 220 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3384 0.0 0.0 1848 296 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3385 0.0 0.0 1848 220 ? S Oct05 0:00 /usr/libexec/courier-authlib/authdaemond
root 3454 0.0 0.0 1824 408 ? S Oct05 0:00 /usr/sbin/smartd
root 3463 0.0 0.0 1536 280 ? Ss Oct05 0:00 /usr/sbin/acpid
root 3493 0.0 0.0 3988 240 ? Ss Oct05 0:00 /usr/sbin/sshd
root 3505 0.0 0.0 2152 392 ? Ss Oct05 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
root 3514 0.0 0.0 4292 388 ? S Oct05 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-fi
mysql 3538 10.4 3.7 148692 27772 ? Sl Oct05 145:38 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=m
root 3584 0.0 0.0 1528 272 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=i
root 3585 0.0 0.0 1636 368 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 3593 0.0 0.0 1532 148 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -na
root 3594 0.0 0.0 1632 288 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 3601 0.0 0.0 1532 276 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=p
root 3602 0.0 0.0 1632 364 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 3610 0.0 0.0 1528 148 ? S Oct05 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -start -na
root 3611 0.0 0.0 1632 288 ? S Oct05 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs
root 4029 0.0 0.0 17020 184 ? Ss Oct05 0:00 /usr/sbin/clamd
root 4139 0.0 0.3 25588 2580 ? Ss Oct05 0:08 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/s
root 4149 0.1 2.1 50844 15752 ? Ssl Oct05 1:26 /usr/sbin/clamd
mailnull 4153 0.0 0.0 7288 416 ? Ss Oct05 0:00 /usr/sbin/exim -bd -oX 26
mailnull 4159 0.0 0.0 7284 524 ? Ss Oct05 0:01 /usr/sbin/exim -bd -q60m
mailnull 4164 0.0 0.0 7276 360 ? Ss Oct05 0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
root 4169 0.1 0.2 8880 1496 ? S Oct05 1:34 lfd - sleeping
root 4235 0.0 0.0 4460 448 ? Ss Oct05 0:00 crond
root 4251 0.0 0.0 1700 320 ? Ss Oct05 0:00 /usr/sbin/atd
root 4375 0.0 0.1 3120 816 ? S Oct05 0:02 antirelayd
root 4616 0.0 0.0 6160 336 ? Ss Oct05 0:00 pure-ftpd (SERVER)
root 4631 0.0 0.0 5700 304 ? S Oct05 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureau
dbus 5051 0.0 0.0 2308 268 ? Ss Oct05 0:00 dbus-daemon-1 --system
root 5105 0.0 0.1 5940 1064 ? Ss Oct05 0:03 hald
root 5195 0.0 0.0 1556 280 ? Ss Oct05 0:00 /usr/sbin/portsentry -tcp
root 5334 0.0 0.0 1532 268 tty1 Ss+ Oct05 0:00 /sbin/mingetty tty1
root 5335 0.0 0.0 1528 268 tty2 Ss+ Oct05 0:00 /sbin/mingetty tty2
root 5336 0.0 0.0 1528 268 tty3 Ss+ Oct05 0:00 /sbin/mingetty tty3
root 5337 0.0 0.0 1528 268 tty4 Ss+ Oct05 0:00 /sbin/mingetty tty4
root 5338 0.0 0.0 1532 268 tty5 Ss+ Oct05 0:00 /sbin/mingetty tty5
root 5602 0.0 0.0 1528 268 tty6 Ss+ Oct05 0:00 /sbin/mingetty tty6
root 12655 0.0 0.2 11880 2084 ? S Oct05 0:02 chkservd
root 22591 0.0 0.1 6984 1400 ? S 03:31 0:01 cpbandwd
root 22659 0.0 0.1 16860 1384 ? SN 03:31 0:17 cpanellogd - sleeping for logs
mailnull 22676 0.0 0.1 7780 1456 ? S 03:31 0:00 eximstats
mailman 22742 0.0 0.0 10288 500 ? Ss 03:31 0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22743 0.0 0.1 10100 1048 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22744 0.0 0.1 10096 1064 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22745 0.0 0.1 10076 1048 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22746 0.0 0.1 10132 1060 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi
mailman 22751 0.0 0.1 10084 1072 ? S 03:31 0:01 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bi