gigahost
Wed 4th Aug '04, 5:54am
I've recently got a dedicated server but I'm not entirely happy with its performance. Most times it is ok but sometimes i get connections refused etc. I am certain the server is not overloaded, as the sites on it are not huge.
Anyway, if anyone can spot anything out of the order in the following then advice would really be appreciated.
1. this is dedicated server
2. your server specs.:
cpu speed/type single or dual cpus): Pentium IV 2.8ghz
how much memory installed: 2GB ram
hard drive type/configuration: 2x80GB IDE non raid
linux distributor : Red Hat Enterprise Linux
apache/IIS version: apache 1.3.31
PHP version: php 4.3.8
MySQL version: mysql 4.0.20
3. not sure what innodb tables are
4. if possible how mysql was compiled/installed
/scripts/easyapache/cpanel
5. your top stats
15:25:09 up 5:26, 1 user, load average: 21.84, 21.43, 25.21
346 processes: 338 sleeping, 6 running, 1 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 88.5% 0.0% 11.4% 0.0% 0.0% 0.0% 0.0%
Mem: 2060824k av, 1040740k used, 1020084k free, 0k shrd, 56864k buff
182464k active, 740364k inactive
Swap: 1012084k av, 0k used, 1012084k free 344160k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
2922 root 16 0 11208 10M 10516 S 87.5 0.5 30:08 0 httpd
28367 mysql 15 0 56184 54M 2044 S 10.1 2.7 7:28 0 mysqld
4951 root 18 0 1460 1460 892 R 3.3 0.0 0:05 0 top
1 root 16 0 428 428 372 S 0.0 0.0 0:05 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 34 19 0 0 0 RWN 0.0 0.0 0:00 0 ksoftirqd/0
6 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
5 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd
7 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated
8 root 21 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
12 root 15 0 0 0 0 SW 0.0 0.0 0:03 0 kjournald
515 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
943 root 15 0 572 572 496 R 0.0 0.0 0:00 0 syslogd
947 root 16 0 392 392 332 S 0.0 0.0 0:00 0 klogd
1017 nobody 15 0 2064 2060 1848 S 0.0 0.0 0:00 0 proftpd
1027 root 16 0 656 656 476 S 0.0 0.0 0:00 0 smartd
1914 root 15 0 3304 3304 1784 S 0.0 0.1 0:00 0 chkservd
2203 root 15 0 612 612 548 S 0.0 0.0 0:00 0 crond
3228 mailnull 16 0 11328 11M 9552 S 0.0 0.5 0:00 0 MailScanner
3357 dbus 18 0 820 820 728 S 0.0 0.0 0:00 0 dbus-daemon-1
3403 root 15 0 484 484 424 S 0.0 0.0 0:00 0 portsentry
3488 root 18 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3489 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3490 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3491 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3492 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3493 root 16 0 352 352 304 S 0.0 0.0 0:00 0 mingetty
3571 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 loop0
3579 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
5907 mailnull 16 0 1564 1564 1344 S 0.0 0.0 0:00 0 exim
6. my mysql configuration variables located at /etc/my.cnf
[mysqld]
port = 3306
socket=/var/lib/mysql/mysql.sock
skip-locking
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache = 64
wait_timeout = 28800
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
record_buffer = 2M
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
7. your mysql extended-status
url: http://noblecare.net/extended-status.php (http://67.18.182.93/mysql_extended.php)
Fri Aug 6 09:35:19 ICT 2004
09:35:20 up 14:34, 1 user, load average: 2.13, 2.55, 2.54
171 processes: 137 sleeping, 5 running, 29 zombie, 0 stopped
total 68.8% 0.0% 31.1% 0.0% 0.0% 0.0% 0.0%
Mem: 2060824k av, 584224k used, 1476600k free, 0k shrd, 101096k buff
311656k active, 196040k inactive
Swap: 1012084k av, 18164k used, 993920k free 238408k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
31197 nobody 17 0 1280 1280 888 R 8.1 0.0 0:00 0 top
Http processes currently running = 27
Mysql processes currently running = 54
Netstat information summary
1 SYN_SENT
2 LAST_ACK
29 FIN_WAIT1
29 LISTEN
64 SYN_RECV
137 FIN_WAIT2
152 ESTABLISHED
284 TIME_WAIT
8. oh and is your vB the only thing on the server? or other scripts? sites?
several html sites, less than 10 gig per month, phpbb scripts (2 forum with 20 user online),
9. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?
Avg: 750 users
Max: 1100 users
Cookie Timeout: 600
10. phpinfo
http://noblecare.net/info.php
11. httpd.conf
KeepAlive on
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 450
12. what version of vB are you running ?
vB 3.0.0
vB database about 200MB
Optimization help please
Anyway, if anyone can spot anything out of the order in the following then advice would really be appreciated.
1. this is dedicated server
2. your server specs.:
cpu speed/type single or dual cpus): Pentium IV 2.8ghz
how much memory installed: 2GB ram
hard drive type/configuration: 2x80GB IDE non raid
linux distributor : Red Hat Enterprise Linux
apache/IIS version: apache 1.3.31
PHP version: php 4.3.8
MySQL version: mysql 4.0.20
3. not sure what innodb tables are
4. if possible how mysql was compiled/installed
/scripts/easyapache/cpanel
5. your top stats
15:25:09 up 5:26, 1 user, load average: 21.84, 21.43, 25.21
346 processes: 338 sleeping, 6 running, 1 zombie, 1 stopped
CPU states: cpu user nice system irq softirq iowait idle
total 88.5% 0.0% 11.4% 0.0% 0.0% 0.0% 0.0%
Mem: 2060824k av, 1040740k used, 1020084k free, 0k shrd, 56864k buff
182464k active, 740364k inactive
Swap: 1012084k av, 0k used, 1012084k free 344160k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
2922 root 16 0 11208 10M 10516 S 87.5 0.5 30:08 0 httpd
28367 mysql 15 0 56184 54M 2044 S 10.1 2.7 7:28 0 mysqld
4951 root 18 0 1460 1460 892 R 3.3 0.0 0:05 0 top
1 root 16 0 428 428 372 S 0.0 0.0 0:05 0 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 34 19 0 0 0 RWN 0.0 0.0 0:00 0 ksoftirqd/0
6 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
5 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd
7 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated
8 root 21 0 0 0 0 SW 0.0 0.0 0:00 0 mdrecoveryd
12 root 15 0 0 0 0 SW 0.0 0.0 0:03 0 kjournald
515 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
943 root 15 0 572 572 496 R 0.0 0.0 0:00 0 syslogd
947 root 16 0 392 392 332 S 0.0 0.0 0:00 0 klogd
1017 nobody 15 0 2064 2060 1848 S 0.0 0.0 0:00 0 proftpd
1027 root 16 0 656 656 476 S 0.0 0.0 0:00 0 smartd
1914 root 15 0 3304 3304 1784 S 0.0 0.1 0:00 0 chkservd
2203 root 15 0 612 612 548 S 0.0 0.0 0:00 0 crond
3228 mailnull 16 0 11328 11M 9552 S 0.0 0.5 0:00 0 MailScanner
3357 dbus 18 0 820 820 728 S 0.0 0.0 0:00 0 dbus-daemon-1
3403 root 15 0 484 484 424 S 0.0 0.0 0:00 0 portsentry
3488 root 18 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3489 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3490 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3491 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3492 root 16 0 356 356 304 S 0.0 0.0 0:00 0 mingetty
3493 root 16 0 352 352 304 S 0.0 0.0 0:00 0 mingetty
3571 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 loop0
3579 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
5907 mailnull 16 0 1564 1564 1344 S 0.0 0.0 0:00 0 exim
6. my mysql configuration variables located at /etc/my.cnf
[mysqld]
port = 3306
socket=/var/lib/mysql/mysql.sock
skip-locking
max_connections = 500
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache = 64
wait_timeout = 28800
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
record_buffer = 2M
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
7. your mysql extended-status
url: http://noblecare.net/extended-status.php (http://67.18.182.93/mysql_extended.php)
Fri Aug 6 09:35:19 ICT 2004
09:35:20 up 14:34, 1 user, load average: 2.13, 2.55, 2.54
171 processes: 137 sleeping, 5 running, 29 zombie, 0 stopped
total 68.8% 0.0% 31.1% 0.0% 0.0% 0.0% 0.0%
Mem: 2060824k av, 584224k used, 1476600k free, 0k shrd, 101096k buff
311656k active, 196040k inactive
Swap: 1012084k av, 18164k used, 993920k free 238408k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
31197 nobody 17 0 1280 1280 888 R 8.1 0.0 0:00 0 top
Http processes currently running = 27
Mysql processes currently running = 54
Netstat information summary
1 SYN_SENT
2 LAST_ACK
29 FIN_WAIT1
29 LISTEN
64 SYN_RECV
137 FIN_WAIT2
152 ESTABLISHED
284 TIME_WAIT
8. oh and is your vB the only thing on the server? or other scripts? sites?
several html sites, less than 10 gig per month, phpbb scripts (2 forum with 20 user online),
9. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?
Avg: 750 users
Max: 1100 users
Cookie Timeout: 600
10. phpinfo
http://noblecare.net/info.php
11. httpd.conf
KeepAlive on
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 450
12. what version of vB are you running ?
vB 3.0.0
vB database about 200MB
Optimization help please