Post Reply  Post Thread 
Server optimizations suggestions
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #1
Server optimizations suggestions

Intel® Pentium® 4 CPU 3.00GHz HTT
2 GB DDRAM
1 x 120 Gb Drive
1 x 80 Gb Drive

WHM 10.8.0 cPanel 10.8.2-R119
CentOS 4.3 i686 - WHM X v3.1.0
PHP Version: 4.4.2
MYSQL Version: 5.0.21
Apache Version: 1.3.36

root@nemesis [~]# free -m
total used free shared buffers cached
Mem: 2018 1680 338 0 207 839
-/+ buffers/cache: 633 1385
Swap: 895 0 895

root@nemesis [~]# vmstat 1
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 620 343632 212416 859996 0 0 36 24 36 26 4 4 91 1
0 0 620 344376 212420 859992 0 0 8 0 721 1893 5 7 87 1
6 0 620 344656 212420 859992 0 0 0 0 695 1803 0 0 100 0
16 0 620 344780 212420 859992 0 0 0 516 678 1827 5 7 88 0

root@nemesis [~]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1708 612 ? Ss Jul14 0:03 init [3]
root 2 0.0 0.0 0 0 ? S Jul14 0:02 [migration/0]
root 3 0.0 0.0 0 0 ? SN Jul14 0:26 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S Jul14 0:00 [watchdog/0]
root 5 0.0 0.0 0 0 ? S Jul14 0:07 [migration/1]
root 6 0.0 0.0 0 0 ? SN Jul14 0:01 [ksoftirqd/1]
root 7 0.0 0.0 0 0 ? S Jul14 0:00 [watchdog/1]
root 8 0.0 0.0 0 0 ? S< Jul14 0:00 [events/0]
root 9 0.0 0.0 0 0 ? S< Jul14 2:23 [events/1]
root 10 0.0 0.0 0 0 ? S< Jul14 0:00 [khelper]
root 11 0.0 0.0 0 0 ? S< Jul14 0:00 [kthread]
root 14 0.0 0.0 0 0 ? S< Jul14 0:00 [kblockd/0]
root 15 0.0 0.0 0 0 ? S< Jul14 3:51 [kblockd/1]
root 16 0.0 0.0 0 0 ? S< Jul14 0:00 [kacpid]
root 81 0.0 0.0 0 0 ? S< Jul14 0:00 [kseriod]
root 133 0.0 0.0 0 0 ? S Jul14 1:36 [kswapd0]
root 134 0.0 0.0 0 0 ? S< Jul14 0:00 [aio/0]
root 135 0.0 0.0 0 0 ? S< Jul14 0:00 [aio/1]
root 757 0.0 0.0 0 0 ? S< Jul14 0:00 [kpsmoused]
root 767 0.0 0.0 0 0 ? S Jul14 0:00 [kirqd]
root 6355 0.0 0.0 0 0 ? S< Jul14 4:26 [kjournald]
root 19911 0.0 0.0 1628 480 ? S<s Jul14 0:00 udevd
root 17580 0.0 0.0 0 0 ? S< Jul14 0:00 [kauditd]
root 29577 0.0 0.0 0 0 ? S< Jul14 0:00 [kjournald]
root 24480 0.1 0.0 0 0 ? S< Jul14 7:55 [kjournald]
root 5036 0.0 0.0 1592 296 ? Ss Jul14 0:00 irqbalance
root 4793 0.0 0.0 4108 556 ? Ss Jul14 0:00 rpc.idmapd
root 25445 0.0 0.0 2420 304 ? Ss Jul14 0:00 /var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO -Smail_host -SSender -SLi
root 32 0.0 0.4 26872 9004 ? Sl Jul14 0:01 /var/dcc/libexec/dccifd -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO -Smail_host -SSender -SLi
root 23293 0.0 0.0 1848 496 ? S Jul14 0:00 /usr/sbin/smartd
root 7710 0.0 0.0 1540 488 ? Ss Jul14 0:00 /usr/sbin/acpid
root 119 0.0 0.0 4116 1040 ? Ss Jul14 0:00 /usr/sbin/sshd
root 27602 0.0 0.0 2176 796 ? Ss Jul14 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
mailnull 4294 0.0 0.0 7360 1216 ? Ss Jul14 0:02 /usr/sbin/exim -bd -q60m
root 27954 0.0 1.2 35576 25968 ? Ss Jul14 0:42 /usr/sbin/clamd
mailnull 16187 0.0 0.0 7352 1196 ? Ss Jul14 0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
root 11309 0.0 0.0 3024 1012 ? S Jul14 0:03 antirelayd
nobody 13699 0.0 0.1 6060 2268 ? S Jul14 0:00 entropychat
root 29755 0.0 1.5 34912 32716 ? Ss Jul14 0:08 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=5
root 30840 0.0 0.0 6212 1460 ? Ss Jul14 0:00 pure-ftpd (SERVER)
root 6925 0.0 0.0 5744 1008 ? S Jul14 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
root 15423 0.0 0.6 16256 13416 ? SN Jul14 2:59 cpanellogd - sleeping for logs
root 2573 0.0 0.2 10612 5528 ? S Jul14 0:06 cppop - accepting on port 110
nobody 18249 0.0 0.0 1892 864 ? S Jul14 0:00 /usr/local/cpanel/bin/startmelange
cpanel 27684 0.0 0.1 8564 3944 ? Ss Jul14 0:59 /usr/bin/stunnel-4.15local /usr/local/cpanel/etc/stunnel/default/stunnel.conf.run
mailman 4431 0.0 0.2 9276 4320 ? Ss Jul14 0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s start
mailman 15795 0.0 0.2 8976 5760 ? S Jul14 0:02 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=ArchRunner:0:
mailman 8603 0.0 0.2 8992 5780 ? S Jul14 0:02 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=BounceRunner:
mailman 5491 0.0 0.2 8992 5772 ? S Jul14 0:03 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=CommandRunner
mailman 21894 0.0 0.2 8968 5768 ? S Jul14 0:04 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=IncomingRunne
mailman 17302 0.0 0.2 8952 5796 ? S Jul14 0:02 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=NewsRunner:0:
mailman 18360 0.0 0.2 8984 5832 ? S Jul14 0:02 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=OutgoingRunne
mailman 14576 0.0 0.2 9012 5764 ? S Jul14 0:02 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=VirginRunner:
mailman 9111 0.0 0.2 8988 5772 ? S Jul14 0:00 /usr/local/bin/python2.4 /usr/local/cpanel/3rdparty/mailman/bin/qrunner --runner=RetryRunner:0
dbus 5198 0.0 0.0 2464 952 ? Ss Jul14 0:00 dbus-daemon-1 --system
root 20000 0.0 0.1 5728 4016 ? Ss Jul14 0:02 hald
root 21084 0.0 0.0 1736 676 ? Ss Jul14 0:00 /usr/sbin/portsentry -tcp
root 32121 0.0 0.0 0 0 ? S< Jul14 2:04 [loop0]
root 28937 0.0 0.0 0 0 ? S< Jul14 0:15 [kjournald]
root 29170 0.0 0.0 1584 436 tty1 Ss+ Jul14 0:00 /sbin/mingetty tty1
root 21215 0.0 0.0 1536 436 tty2 Ss+ Jul14 0:00 /sbin/mingetty tty2
root 12314 0.0 0.0 1536 436 tty3 Ss+ Jul14 0:00 /sbin/mingetty tty3
root 5189 0.0 0.0 1572 436 tty4 Ss+ Jul14 0:00 /sbin/mingetty tty4
root 28828 0.0 0.0 1532 436 tty5 Ss+ Jul14 0:00 /sbin/mingetty tty5
root 21584 0.0 0.0 1540 432 tty6 Ss+ Jul14 0:00 /sbin/mingetty tty6
root 1923 0.0 0.0 1620 336 ? Ss Jul14 0:00 /usr/local/oidentd/sbin/oidentd -q
postgres 11699 0.0 0.1 19308 3196 ? S Jul14 0:25 /usr/bin/postmaster -p 5432 -D /var/lib/pgsql/data
postgres 5151 0.0 0.0 9096 1040 ? S Jul14 0:01 postgres: logger process
postgres 18827 0.0 0.4 19440 9420 ? S Jul14 0:09 postgres: writer process
postgres 30325 0.0 0.0 10096 1892 ? S Jul14 0:03 postgres: stats buffer process
postgres 29751 0.0 0.0 9228 1192 ? S Jul14 0:03 postgres: stats collector process
root 23881 0.0 0.0 1640 544 ? Ss Jul17 0:07 syslogd -m 0
root 22084 0.0 0.0 1576 372 ? Ss Jul17 0:00 klogd -x
root 31832 0.0 0.3 11768 7868 ? S Jul17 0:07 chkservd
root 20420 0.0 0.1 6924 3192 ? S Jul17 0:02 lfd - sleeping
mailnull 13327 0.0 0.2 10164 5332 ? S Jul17 0:01 eximstats
root 8440 0.0 0.2 9136 5324 ? Ss Jul18 0:02 /usr/local/apache/bin/httpd -DSSL
root 2534 0.0 0.0 2216 1116 ? S Jul18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/nemesis.design
mysql 17763 0.9 1.1 120068 24716 ? Sl Jul18 11:38 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/n
xoro 28672 0.0 0.4 51444 8312 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 27505 0.0 0.4 51408 8312 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 12649 0.0 0.4 51396 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 11400 0.0 0.4 51400 8344 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 27980 0.0 0.3 51364 8268 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 228 0.0 0.4 51432 8464 ? S Jul18 0:00 /usr/bin/php index.php
xoro 20320 0.0 0.4 51380 8336 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 3251 0.0 0.4 51440 8308 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 27147 0.0 0.4 51444 8316 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 12747 0.0 0.4 51424 8316 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 14717 0.0 0.3 51312 8208 ? S Jul18 0:00 /usr/bin/php login.php
xoro 24178 0.0 0.4 51420 8304 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 29586 0.0 0.3 51344 8212 ? S Jul18 0:00 /usr/bin/php login.php
xoro 21734 0.0 0.4 51412 8316 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 21409 0.0 0.4 51368 8348 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 1728 0.0 0.4 51624 8832 ? S Jul18 0:00 /usr/bin/php account.php
xoro 10656 0.0 0.4 51452 8316 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 24620 0.0 0.4 51456 8368 ? S Jul18 0:00 /usr/bin/php index.php
xoro 10424 0.0 0.4 51464 8312 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 30010 0.0 0.3 51344 8264 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 13492 0.0 0.4 51432 8444 ? S Jul18 0:00 /usr/bin/php index.php
xoro 24545 0.0 0.4 51356 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 22927 0.0 0.4 51400 8304 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 416 0.0 0.4 51428 8460 ? S Jul18 0:00 /usr/bin/php index.php
xoro 8831 0.0 0.4 51344 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 25973 0.0 0.4 51404 8308 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 10475 0.0 0.3 51348 8220 ? S Jul18 0:00 /usr/bin/php login.php
xoro 31421 0.0 0.4 51464 8440 ? S Jul18 0:00 /usr/bin/php index.php
xoro 16661 0.0 0.4 51448 8348 ? S Jul18 0:00 /usr/bin/php d.php
xoro 2641 0.0 0.4 51432 8344 ? S Jul18 0:00 /usr/bin/php d.php
xoro 29226 0.0 0.4 51400 8392 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 30659 0.0 0.4 51364 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 12307 0.0 0.4 51448 8444 ? S Jul18 0:00 /usr/bin/php index.php
xoro 9816 0.0 0.4 51460 8344 ? S Jul18 0:00 /usr/bin/php d.php
xoro 12882 0.0 0.4 51452 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 16779 0.0 0.4 51428 8460 ? S Jul18 0:00 /usr/bin/php index.php
xoro 18534 0.0 0.4 51452 8384 ? S Jul18 0:00 /usr/bin/php index.php
xoro 21941 0.0 0.4 51436 8368 ? S Jul18 0:00 /usr/bin/php index.php
xoro 29673 0.0 0.4 51428 8336 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 17968 0.0 0.4 51444 8376 ? S Jul18 0:00 /usr/bin/php index.php
xoro 21935 0.0 0.4 51352 8336 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 17841 0.0 0.4 51484 8336 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 5866 0.0 0.4 51404 8344 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 24443 0.0 0.4 51384 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 10636 0.0 0.4 51392 8336 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 23358 0.0 0.4 51428 8452 ? S Jul18 0:00 /usr/bin/php index.php
xoro 3181 0.0 0.4 51432 8308 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 32389 0.0 0.4 51604 8516 ? S Jul18 0:00 /usr/bin/php usercp.php
xoro 17682 0.0 0.4 51436 8308 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 29034 0.0 0.4 51424 8368 ? S Jul18 0:00 /usr/bin/php index.php
xoro 12174 0.0 0.4 51428 8340 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 2003 0.0 0.4 51420 8384 ? S Jul18 0:00 /usr/bin/php index.php
xoro 10527 0.0 0.3 51376 8268 ? S Jul18 0:00 /usr/bin/php torrents.php
xoro 25723 0.0 0.4 51432 8460 ? S Jul18 0:00 /usr/bin/php index.php
xoro 4622 0.0 0.4 51420 8316 ? S Jul18 0:00 /usr/bin/php userdetails.php
xoro 13803 0.0 0.3 51340 8236 ? S Jul18 0:00 /usr/bin/php recover.php
named 19182 0.2 0.5 39180 10792 ? Ssl Jul18 2:45 /usr/sbin/named -u named -t /var/named/chroot
root 22385 0.0 0.1 6984 2236 ? Ss 00:22 0:00 sshd: upload [priv]
upload 11437 0.0 0.0 6984 1680 ? S 00:22 0:00 sshd: upload@pts/2
upload 32548 0.0 0.0 4476 1460 pts/2 Ss+ 00:22 0:00 -bash
root 13944 0.0 0.1 6960 2236 ? Ss 00:23 0:00 sshd: upload [priv]
upload 12501 0.0 0.0 6960 1676 ? S 00:23 0:00 sshd: upload@pts/3
upload 20830 0.0 0.0 4476 1464 pts/3 Ss+ 00:23 0:00 -bash
root 3727 0.0 0.3 12368 6484 ? S 02:36 0:01 cpsrvd - waiting for connections
root 2279 0.0 0.1 6016 3672 ? S 03:09 0:00 /usr/bin/perl /usr/local/cpanel/bin/leechprotect
nobody 2504 0.0 0.2 9360 5476 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 19825 0.0 0.2 9364 4900 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 11702 0.0 0.2 9348 5060 ? S 03:09 0:04 /usr/local/apache/bin/httpd -DSSL
nobody 10708 0.0 0.3 13320 6760 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 13264 0.0 0.3 13200 6504 ? S 03:09 0:06 /usr/local/apache/bin/httpd -DSSL
nobody 23130 0.0 0.2 9676 5792 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 15844 0.0 0.3 13768 7424 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 4939 0.0 0.2 9404 5516 ? S 03:09 0:04 /usr/local/apache/bin/httpd -DSSL
nobody 5492 0.0 0.2 9680 5832 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 27992 0.0 0.2 10004 6120 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 31743 0.0 0.2 9432 5508 ? S 03:09 0:04 /usr/local/apache/bin/httpd -DSSL
nobody 10638 0.0 0.2 10124 5952 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 22989 0.0 0.2 9500 5224 ? S 03:09 0:06 /usr/local/apache/bin/httpd -DSSL
nobody 5170 0.0 0.2 9380 4912 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 16180 0.0 0.2 9368 5068 ? S 03:09 0:04 /usr/local/apache/bin/httpd -DSSL
nobody 28297 0.0 0.2 10236 5760 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 3116 0.0 0.2 9616 5284 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 2255 0.0 0.3 13684 6568 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 25215 0.0 0.2 9380 5080 ? S 03:09 0:06 /usr/local/apache/bin/httpd -DSSL
nobody 532 0.0 0.2 9388 5516 ? S 03:09 0:05 /usr/local/apache/bin/httpd -DSSL
nobody 27671 0.0 0.2 9496 5200 ? S 03:09 0:04 /usr/local/apache/bin/httpd -DSSL
nobody 29155 0.0 0.2 9456 5540 ? S 03:09 0:04 /usr/local/apache/bin/httpd -DSSL
nobody 31354 0.0 0.2 9364 5076 ? S 03:59 0:03 /usr/local/apache/bin/httpd -DSSL
root 7388 0.0 1.5 34912 31108 ? S 04:52 0:00 spamd child
erdeesh 27166 0.0 0.0 6252 1216 ? S 06:15 0:00 pure-ftpd (IDLE)
root 19106 0.0 0.1 7132 2340 ? Rs 06:20 0:01 sshd: root@pts/4
root 20721 0.0 0.0 4448 1448 pts/4 Ss 06:20 0:00 -bash
root 23061 0.0 0.0 0 0 ? S 06:30 0:02 [pdflush]
root 23594 0.0 0.0 0 0 ? S 06:37 0:02 [pdflush]
nobody 26448 0.0 0.2 9312 4836 ? S 06:49 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 6474 0.0 0.2 9396 5432 ? S 06:49 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 13826 0.0 0.2 9400 5020 ? S 06:49 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 18299 0.0 0.2 9348 4844 ? S 06:57 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 8288 0.0 0.2 9264 4788 ? S 06:57 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 19969 0.0 0.2 9312 4984 ? S 06:57 0:01 /usr/local/apache/bin/httpd -DSSL
nobody 10458 0.0 0.2 9336 5264 ? S 06:58 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 10564 0.0 0.2 9272 4780 ? S 07:00 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 11541 0.0 0.2 9272 5424 ? S 07:00 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 14667 0.0 0.2 9272 5220 ? S 07:01 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 32501 0.0 0.2 9988 5268 ? S 07:10 0:01 /usr/local/apache/bin/httpd -DSSL
nobody 10197 0.0 0.2 9264 4948 ? S 07:14 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 27990 0.0 0.2 9304 4800 ? S 07:14 0:00 /usr/local/apache/bin/httpd -DSSL
root 6861 0.0 1.6 36328 34096 ? S 07:18 0:01 spamd child
root 26597 0.0 0.1 6976 2232 ? Ss 07:20 0:00 sshd: dodoirc [priv]
dodoirc 31056 0.0 0.0 6976 1592 ? S 07:21 0:00 sshd: dodoirc@pts/5
dodoirc 10866 0.0 0.0 4328 1408 pts/5 Ss+ 07:21 0:00 -bash
nobody 28655 0.0 0.2 9252 4736 ? S 07:21 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 25378 0.0 0.2 9332 4820 ? S 07:22 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 12283 0.0 0.2 9268 4748 ? S 07:36 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 16365 0.0 0.2 9268 4656 ? S 07:36 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 15552 0.0 0.2 9400 4768 ? S 07:36 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 30232 0.0 0.2 9264 4588 ? S 07:36 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 22993 0.0 0.2 9264 4680 ? S 07:37 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 28690 0.0 0.2 9264 4688 ? S 07:37 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 11016 0.0 0.2 9136 4576 ? S 07:40 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 29949 0.0 0.2 9136 4148 ? S 07:40 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 31772 0.0 0.3 11420 6812 ? S 07:40 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 20107 0.0 0.2 9136 4516 ? S 07:40 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 23607 0.0 0.2 9136 4532 ? S 07:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 10802 0.0 0.2 9264 4580 ? S 07:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 15907 0.0 0.2 9272 4628 ? S 07:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 24665 0.0 0.2 9136 4532 ? S 07:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 20707 0.0 0.2 9136 4488 ? S 07:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 21629 0.0 0.2 9136 4532 ? S 07:41 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 21155 0.0 0.2 9136 4488 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 15531 0.0 0.2 9268 4684 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 19192 0.0 0.2 9136 4544 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 3633 0.0 0.2 9268 4608 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 23531 0.0 0.2 9136 4444 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 8918 0.0 0.2 9136 4488 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 23652 0.0 0.2 9136 4488 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 2667 0.0 0.2 9136 4480 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 19638 0.0 0.2 9136 4488 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
nobody 13933 0.1 0.0 0 0 ? Z 07:42 0:00 [httpd] <defunct>
nobody 21421 0.0 0.2 9136 4484 ? S 07:42 0:00 /usr/local/apache/bin/httpd -DSSL
vulpi 32264 0.0 0.0 6220 1116 ? S 07:42 0:00 pure-ftpd (IDLE)
mailnull 11385 0.0 0.0 7368 1172 ? S 07:42 0:00 /usr/sbin/exim -bd -q60m
root 2765 0.0 0.0 2396 764 pts/4 R+ 07:42 0:00 ps aux
admin 13377 0.0 1.8 50560 38968 ? R 07:42 0:00 /usr/bin/php live.php


top - 07:44:04 up 5 days, 6:05, 4 users, load average: 0.25, 0.84, 0.73
Tasks: 249 total, 1 running, 246 sleeping, 0 stopped, 2 zombie
Cpu(s): 8.5% us, 10.0% sy, 0.0% ni, 78.6% id, 0.2% wa, 0.0% hi, 2.8% si
Mem: 2067452k total, 1725956k used, 341496k free, 212856k buffers
Swap: 917496k total, 620k used, 916876k free, 861120k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15552 nobody 15 0 9400 4780 1236 S 0.7 0.2 0:00.41 httpd
17763 mysql 15 0 117m 24m 4332 S 0.3 1.2 11:39.02 mysqld
16180 nobody 15 0 9368 5068 1300 S 0.3 0.2 0:04.24 httpd
18299 nobody 15 0 9348 4844 1248 S 0.3 0.2 0:00.78 httpd
14893 nobody 15 0 9136 4544 1164 S 0.3 0.2 0:00.02 httpd
19892 nobody 15 0 9136 4528 1148 S 0.3 0.2 0:00.01 httpd
13901 nobody 16 0 9272 4608 1192 S 0.3 0.2 0:00.02 httpd
32099 nobody 15 0 9136 4548 1168 S 0.3 0.2 0:00.01 httpd
16865 root 16 0 2088 1128 780 R 0.3 0.1 0:00.03 top
1 root 16 0 1708 612 528 S 0.0 0.0 0:03.90 init
2 root RT 0 0 0 0 S 0.0 0.0 0:02.97 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:26.70 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:00.10 watchdog/0
5 root RT 0 0 0 0 S 0.0 0.0 0:07.40 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:01.74 ksoftirqd/1
7 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root 10 -5 0 0 0 S 0.0 0.0 0:00.30 events/0
9 root 10 -5 0 0 0 S 0.0 0.0 2:23.25 events/1
10 root 17 -5 0 0 0 S 0.0 0.0 0:00.04 khelper
11 root 10 -5 0 0 0 S 0.0 0.0 0:00.05 kthread
14 root 10 -5 0 0 0 S 0.0 0.0 0:00.39 kblockd/0
15 root 10 -5 0 0 0 S 0.0 0.0 3:51.52 kblockd/1
16 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
81 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
133 root 15 0 0 0 0 S 0.0 0.0 1:36.17 kswapd0
134 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
135 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 aio/1
757 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused

07-19-2006 12:55 PM
Find all posts by this user Quote this message in a reply
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #2
RE: Server optimizations suggestions

root@nemesis [~]# cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
#old_passwords=1

[mysql.server]
user=mysql
# basedir=/var/lib
query_cache_limit=1M
query_cache_size=64M
query_cache_type=1

max_connections = 448
max_user_connections = 448

interactive_timeout=6
wait_timeout=6
connect_timeout=6

thread_cache_size=384
key_buffer=96M

max_allowed_packet=1M
table_cache=512
record_buffer=1M
sort_buffer_size=1M
read_buffer_size=1M

thread_concurrency=4
myisam_sort_buffer_size=64M
server-id=1

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=2M
write_buffer=2M

[mysqlhotcopy]
interactive-timeout

07-19-2006 12:57 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #3
RE: Server optimizations suggestions

The load is pretty good.. Do you need to optimizations to speed up your website serving?

If so, what kind of softwares are being used on your website(s)?

07-19-2006 02:12 PM
Find all posts by this user Quote this message in a reply
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #4
RE: Server optimizations suggestions

sometimes load jumps to 5 or 10 and stays there for some time. apache is the process that is seen in top filling the screen. i have no optimizations made to the sql and apache, this is why i asked...

07-19-2006 02:27 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #5
RE: Server optimizations suggestions

Did you read my article about "moving mysql to second drive". Since you have two drives, you can get more speed by splitting the load on multiple drives.

Apache overloading the server depends on what's going on. Anyways, can you please post your apache httpd.conf variables like TimeOut, MaxSpareServers, KeepAlive, KeepaliveTimeout etc..

You can make the following optimizations to your my.cnf file. (You didn't tell what type of sites/softwares are being hosted, so I have rather generalized it.)

Code:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
#old_passwords=1

[mysql.server]
user=mysql
# basedir=/var/lib
query_cache_limit=1M
query_cache_size=32M
query_cache_type=1

max_connections = 448
max_user_connections = 448

interactive_timeout=60
wait_timeout=60
connect_timeout=10

thread_cache_size=16
key_buffer=96M

max_allowed_packet=1M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
read_rnd_buffer_size = 2M

thread_concurrency=2
myisam_sort_buffer_size=64M
server-id=1

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=2M
write_buffer=2M

[mysqlhotcopy]
interactive-timeout

07-19-2006 02:36 PM
Find all posts by this user Quote this message in a reply
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #6
RE: Server optimizations suggestions

Timeout 300
MaxSpareServers 10
KeepAliveTimeout 15
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

07-19-2006 02:48 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 221
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #7
RE: Server optimizations suggestions

Change it to:

Timeout 60
MaxSpareServers 20
KeepAliveTimeout 4
KeepAlive On
MaxKeepAliveRequests 150

07-19-2006 03:11 PM
Find all posts by this user Quote this message in a reply
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #8
RE: Server optimizations suggestions

ok it's done . will keep it posted.

07-20-2006 01:21 PM
Find all posts by this user Quote this message in a reply
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #9
RE: Server optimizations suggestions

ok just fyi after i read the article with the hdd performance i tested my disks, and i just found out that they are most likely to fail. thanks for a great job. i wish this community to grow bigger.

07-20-2006 01:27 PM
Find all posts by this user Quote this message in a reply
katmai
Junior Member
**

Posts: 26
Group: Registered
Joined: Jul 2006
Status: Offline
Reputation: 0
Post: #10
RE: Server optimizations suggestions

okay my load is up on the roof now .. i have no idea why ... i got mod security installed ..


top - 14:40:58 up 6 days, 1:44, 2 users, load average: 4.28, 4.02, 4.09
Tasks: 179 total, 6 running, 172 sleeping, 1 stopped, 0 zombie
Cpu(s): 68.6% us, 21.1% sy, 0.0% ni, 6.1% id, 0.0% wa, 1.1% hi, 3.2% si
Mem: 2067452k total, 1295412k used, 772040k free, 91284k buffers
Swap: 917496k total, 512k used, 916984k free, 797524k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10395 mysql 15 0 104m 20m 4336 S 45.0 1.0 29:15.91 mysqld
18313 nigmae 20 0 51032 26m 22m R 17.1 1.3 0:00.24 php
12411 nigmae 18 0 51376 8140 4596 R 15.0 0.4 0:00.21 php
5871 root 16 0 36036 33m 1984 S 13.6 1.6 0:01.29 spamd
8820 nobody 15 0 10888 6212 1284 S 11.4 0.3 1:29.70 httpd
14354 nobody 15 0 9896 5356 1172 S 8.6 0.3 0:00.25 httpd
21240 nobody 15 0 10488 6428 1720 S 7.1 0.3 1:34.61 httpd
9234 nobody 15 0 10644 6104 1300 S 6.4 0.3 1:35.32 httpd
18849 root 20 0 10184 4084 2956 S 6.4 0.2 0:00.09 exim
14050 nobody 15 0 10524 6456 1724 S 4.3 0.3 1:39.91 httpd


my ltop looks like this .. please help ... it's driving me nuts...

07-26-2006 07:53 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: