PDA

View Full Version : Server Optimization Request


SpankMe
Wed 19th Apr '06, 5:59am
Server sometimes grinds to a halt due to excessive swapping. :( Your help tuning the server would be greatly appreciated.

1. Dedicated server running my two vB sites and mail server.

2.
cpu: Celeron 2.40GHz
memory installed: 1GB ram
hard drive: 74GB EIDE non raid
linux distributor: Fedora Core 4
apache: Apache/2.0.54
PHP version: php 5.0.5
MySQL version: mysql 4.1.16

3. No innodb type databases/tables on server.

4. Installed from rpm

5.
top
top - 18:49:34 up 20 days, 17:09, 2 users, load average: 1.76, 1.44, 1.39
Tasks: 131 total, 1 running, 129 sleeping, 0 stopped, 1 zombie
Cpu(s): 22.6% us, 2.3% sy, 0.0% ni, 60.8% id, 14.0% wa, 0.3% hi, 0.0% si
Mem: 1027596k total, 1002072k used, 25524k free, 8256k buffers
Swap: 2096472k total, 11744k used, 2084728k free, 620964k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10360 apache 16 0 29804 13m 4252 S 8.0 1.3 0:13.79 httpd
9285 mysql 15 0 135m 32m 4028 S 4.7 3.2 96:04.74 mysqld
9978 apache 16 0 29896 13m 4284 S 3.7 1.4 0:19.47 httpd
12803 apache 16 0 29256 11m 3124 S 3.0 1.2 0:00.92 httpd
9441 apache 17 0 31536 15m 4332 S 2.7 1.5 0:23.41 httpd
11261 apache 16 0 0 0 0 Z 1.7 0.0 0:09.75 httpd <defunct>
9878 webboy 15 0 53088 45m 43m S 0.7 4.5 0:14.46 rtorrent
12445 apache 16 0 32748 15m 3180 S 0.7 1.5 0:03.89 httpd
12174 apache 15 0 32872 15m 3448 S 0.3 1.6 0:05.75 httpd
12779 root 16 0 2020 1040 796 R 0.3 0.1 0:00.26 top
1 root 16 0 1740 444 416 S 0.0 0.0 0:02.40 init
2 root 39 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
3 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 events/0
4 root 11 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
5 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
7 root 10 -5 0 0 0 S 0.0 0.0 0:01.62 kblockd/0
8 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
93 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
148 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
147 root 15 0 0 0 0 S 0.0 0.0 4:10.78 kswapd0
235 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
317 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
321 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
322 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
333 root 15 0 0 0 0 S 0.0 0.0 2:19.41 kjournald
518 root 11 -4 1648 244 192 S 0.0 0.0 0:00.17 udevd
803 root 10 -5 0 0 0 S 0.0 0.0 0:00.91 kauditd
1080 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
1366 root 16 0 1616 316 252 S 0.0 0.0 0:22.03 syslogd
1368 root 16 0 1564 200 196 S 0.0 0.0 0:00.00 klogd
1382 rpc 15 0 1696 148 144 S 0.0 0.0 0:00.00 portmap
1399 rpcuser 18 0 1740 204 200 S 0.0 0.0 0:00.00 rpc.statd
1437 root 16 0 4384 168 132 S 0.0 0.0 0:01.17 rpc.idmapd
1536 root 16 0 2736 344 276 S 0.0 0.0 0:48.29 nifd
1565 nobody 16 0 13432 308 280 S 0.0 0.0 0:00.02 mDNSResponder
1573 root 16 0 1556 192 188 S 0.0 0.0 0:00.00 acpid
1816 cyrus 16 0 4900 372 272 S 0.0 0.0 0:20.35 cyrus-master
1845 cyrus 16 0 28724 84 56 S 0.0 0.0 0:07.10 idled
1847 cyrus 16 0 30180 228 224 S 0.0 0.0 0:00.00 imapd
1848 cyrus 16 0 30180 228 224 S 0.0 0.0 0:00.01 imapd
1849 cyrus 16 0 29948 228 224 S 0.0 0.0 0:00.00 pop3d
1850 cyrus 16 0 29944 232 228 S 0.0 0.0 0:00.00 pop3d

6.
cat /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable=max_connections=250
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
#ft_min_word_len=3

[mysql.server]
user=mysql
basedir=/var/lib

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

7.
mysqladmin -u root -p var ext stat ver
+---------------------------------+-------------------------------------------------------------+
| Variable_name | Value |
+---------------------------------+-------------------------------------------------------------+
| back_log | 50 |
| basedir | /usr/ |
| bdb_cache_size | 8388600 |
| bdb_home | /var/lib/mysql/ |
| bdb_log_buffer_size | 32768 |
| bdb_logdir | |
| bdb_max_lock | 10000 |
| bdb_shared_data | OFF |
| bdb_tmpdir | /tmp/ |
| binlog_cache_size | 32768 |
| bulk_insert_buffer_size | 8388608 |
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
| collation_connection | latin1_swedish_ci |
| collation_database | latin1_swedish_ci |
| collation_server | latin1_swedish_ci |
| concurrent_insert | ON |
| connect_timeout | 5 |
| datadir | /var/lib/mysql/ |
| date_format | %Y-%m-%d |
| datetime_format | %Y-%m-%d %H:%i:%s |
| default_week_format | 0 |
| delay_key_write | ON |
| delayed_insert_limit | 100 |
| delayed_insert_timeout | 300 |
| delayed_queue_size | 1000 |
| expire_logs_days | 0 |
| flush | OFF |
| flush_time | 0 |
| ft_boolean_syntax | + -><()~*:""&| |
| ft_max_word_len | 84 |
| ft_min_word_len | 4 |
| ft_query_expansion_limit | 20 |
| ft_stopword_file | (built-in) |
| group_concat_max_len | 1024 |
| have_archive | NO |
| have_bdb | YES |
| have_blackhole_engine | NO |
| have_compress | YES |
| have_crypt | YES |
| have_csv | NO |
| have_example_engine | NO |
| have_geometry | YES |
| have_innodb | YES |
| have_isam | YES |
| have_ndbcluster | NO |
| have_openssl | YES |
| have_query_cache | YES |
| have_raid | NO |
| have_rtree_keys | YES |
| have_symlink | YES |
| init_connect | |
| init_file | |
| init_slave | |
| innodb_additional_mem_pool_size | 1048576 |
| innodb_autoextend_increment | 8 |
| innodb_buffer_pool_awe_mem_mb | 0 |
| innodb_buffer_pool_size | 8388608 |
| innodb_data_file_path | ibdata1:10M:autoextend |
| innodb_data_home_dir | |
| innodb_fast_shutdown | ON |
| innodb_file_io_threads | 4 |
| innodb_file_per_table | OFF |
| innodb_flush_log_at_trx_commit | 1 |
| innodb_flush_method | |
| innodb_force_recovery | 0 |
| innodb_lock_wait_timeout | 50 |
| innodb_locks_unsafe_for_binlog | OFF |
| innodb_log_arch_dir | |
| innodb_log_archive | OFF |
| innodb_log_buffer_size | 1048576 |
| innodb_log_file_size | 5242880 |
| innodb_log_files_in_group | 2 |
| innodb_log_group_home_dir | ./ |
| innodb_max_dirty_pages_pct | 90 |
| innodb_max_purge_lag | 0 |
| innodb_mirrored_log_groups | 1 |
| innodb_open_files | 300 |
| innodb_table_locks | ON |
| innodb_thread_concurrency | 8 |
| interactive_timeout | 28800 |
| join_buffer_size | 131072 |
| key_buffer_size | 8388600 |
| key_cache_age_threshold | 300 |
| key_cache_block_size | 1024 |
| key_cache_division_limit | 100 |
| language | /usr/share/mysql/english/ |
| large_files_support | ON |
| license | GPL |
| local_infile | ON |
| locked_in_memory | OFF |
| log | OFF |
| log_bin | OFF |
| log_error | |
| log_slave_updates | OFF |
| log_slow_queries | ON |
| log_update | OFF |
| log_warnings | 1 |
| long_query_time | 10 |
| low_priority_updates | OFF |
| lower_case_file_system | OFF |
| lower_case_table_names | 0 |
| max_allowed_packet | 1048576 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connect_errors | 10 |
| max_connections | 250 |
| max_delayed_threads | 20 |
| max_error_count | 64 |
| max_heap_table_size | 16777216 |
| max_insert_delayed_threads | 20 |
| max_join_size | 4294967295 |
| max_length_for_sort_data | 1024 |
| max_relay_log_size | 0 |
| max_seeks_for_key | 4294967295 |
| max_sort_length | 1024 |
| max_tmp_tables | 32 |
| max_user_connections | 0 |
| max_write_lock_count | 4294967295 |
| myisam_data_pointer_size | 4 |
| myisam_max_extra_sort_file_size | 2147483648 |
| myisam_max_sort_file_size | 2147483647 |
| myisam_recover_options | OFF |
| myisam_repair_threads | 1 |
| myisam_sort_buffer_size | 8388608 |
| myisam_stats_method | nulls_unequal |
| net_buffer_length | 16384 |
| net_read_timeout | 30 |
| net_retry_count | 10 |
| net_write_timeout | 60 |
| new | OFF |
| old_passwords | ON |
| open_files_limit | 1260 |
| pid_file | /var/run/mysqld/mysqld.pid |
| port | 3306 |
| preload_buffer_size | 32768 |
| protocol_version | 10 |
| query_alloc_block_size | 8192 |
| query_cache_limit | 1048576 |
| query_cache_min_res_unit | 4096 |
| query_cache_size | 0 |
| query_cache_type | ON |
| query_cache_wlock_invalidate | OFF |
| query_prealloc_size | 8192 |
| range_alloc_block_size | 2048 |
| read_buffer_size | 131072 |
| read_only | OFF |
| read_rnd_buffer_size | 262144 |
| relay_log_purge | ON |
| relay_log_space_limit | 0 |
| rpl_recovery_rank | 0 |
| secure_auth | OFF |
| server_id | 0 |
| skip_external_locking | ON |
| skip_networking | OFF |
| skip_show_database | OFF |
| slave_net_timeout | 3600 |
| slave_transaction_retries | 0 |
| slow_launch_time | 2 |
| socket | /var/lib/mysql/mysql.sock |
| sort_buffer_size | 2097144 |
| sql_mode | |
| sql_notes | ON |
| sql_warnings | ON |
| storage_engine | MyISAM |
| sync_binlog | 0 |
| sync_frm | ON |
| sync_replication | 0 |
| sync_replication_slave_id | 0 |
| sync_replication_timeout | 0 |
| system_time_zone | NZST |
| table_cache | 64 |
| table_type | MyISAM |
| thread_cache_size | 0 |
| thread_stack | 196608 |
| time_format | %H:%i:%s |
| time_zone | SYSTEM |
| tmp_table_size | 33554432 |
| tmpdir | |
| transaction_alloc_block_size | 8192 |
| transaction_prealloc_size | 4096 |
| tx_isolation | REPEATABLE-READ |
| version | 4.1.16-log |
| version_bdb | Sleepycat Software: Berkeley DB 4.1.24: (November 30, 2005) |
| version_comment | Source distribution |
| version_compile_machine | i386 |
| version_compile_os | redhat-linux-gnu |
| wait_timeout | 28800 |
+---------------------------------+-------------------------------------------------------------+
+--------------------------------+------------+
| Variable_name | Value |
+--------------------------------+------------+
| Aborted_clients | 14 |
| Aborted_connects | 0 |
| Binlog_cache_disk_use | 0 |
| Binlog_cache_use | 0 |
| Bytes_received | 714863269 |
| Bytes_sent | 2394651123 |
| Com_admin_commands | 1 |
| Com_alter_db | 0 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 142209 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_checksum | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 0 |
| Com_dealloc_sql | 0 |
| Com_delete | 9766 |
| Com_delete_multi | 0 |
| Com_do | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_drop_user | 0 |
| Com_execute_sql | 0 |
| Com_flush | 0 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_help | 0 |
| Com_insert | 52409 |
| Com_insert_select | 0 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 4 |
| Com_optimize | 0 |
| Com_preload_keys | 0 |
| Com_prepare_sql | 0 |
| Com_purge | 0 |
| Com_purge_before_date | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 26162 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_revoke_all | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 1603204 |
| Com_set_option | 521 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 2 |
| Com_show_charsets | 18 |
| Com_show_collations | 18 |
| Com_show_column_types | 0 |
| Com_show_create_db | 0 |
| Com_show_create_table | 445 |
| Com_show_databases | 9 |
| Com_show_errors | 0 |
| Com_show_fields | 618 |
| Com_show_grants | 8 |
| Com_show_innodb_status | 0 |
| Com_show_keys | 0 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_ndb_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_privileges | 0 |
| Com_show_processlist | 0 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 1 |
| Com_show_storage_engines | 0 |
| Com_show_tables | 665 |
| Com_show_variables | 202 |
| Com_show_warnings | 0 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_stmt_close | 0 |
| Com_stmt_execute | 0 |
| Com_stmt_prepare | 0 |
| Com_stmt_reset | 0 |
| Com_stmt_send_long_data | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 4 |
| Com_update | 164987 |
| Com_update_multi | 0 |
| Connections | 143655 |
| Created_tmp_disk_tables | 13379 |
| Created_tmp_files | 3141 |
| Created_tmp_tables | 78847 |
| Delayed_errors | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 27228 |
| Handler_discover | 0 |
| Handler_read_first | 198159 |
| Handler_read_key | 153152008 |
| Handler_read_next | 230841169 |
| Handler_read_prev | 399298 |
| Handler_read_rnd | 8711152 |
| Handler_read_rnd_next | 275464705 |
| Handler_rollback | 0 |
| Handler_update | 270443 |
| Handler_write | 7162526 |
| Key_blocks_not_flushed | 0 |
| Key_blocks_unused | 1075 |
| Key_blocks_used | 7248 |
| Key_read_requests | 392708327 |
| Key_reads | 4462140 |
| Key_write_requests | 607960 |
| Key_writes | 177839 |
| Max_used_connections | 42 |
| Not_flushed_delayed_rows | 0 |
| Open_files | 124 |
| Open_streams | 0 |
| Open_tables | 64 |
| Opened_tables | 248461 |
| Qcache_free_blocks | 0 |
| Qcache_free_memory | 0 |
| Qcache_hits | 0 |
| Qcache_inserts | 0 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 0 |
| Qcache_queries_in_cache | 0 |
| Qcache_total_blocks | 0 |
| Questions | 2144891 |
| Rpl_status | NULL |
| Select_full_join | 11319 |
| Select_full_range_join | 0 |
| Select_range | 514096 |
| Select_range_check | 0 |
| Select_scan | 331901 |
| Slave_open_temp_tables | 0 |
| Slave_retried_transactions | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 138 |
| Slow_queries | 30 |
| Sort_merge_passes | 1569 |
| Sort_range | 189882 |
| Sort_rows | 63317553 |
| Sort_scan | 116241 |
| Ssl_accept_renegotiates | 0 |
| Ssl_accepts | 0 |
| Ssl_callback_cache_hits | 0 |
| Ssl_cipher | |
| Ssl_cipher_list | |
| Ssl_client_connects | 0 |
| Ssl_connect_renegotiates | 0 |
| Ssl_ctx_verify_depth | 0 |
| Ssl_ctx_verify_mode | 0 |
| Ssl_default_timeout | 0 |
| Ssl_finished_accepts | 0 |
| Ssl_finished_connects | 0 |
| Ssl_session_cache_hits | 0 |
| Ssl_session_cache_misses | 0 |
| Ssl_session_cache_mode | NONE |
| Ssl_session_cache_overflows | 0 |
| Ssl_session_cache_size | 0 |
| Ssl_session_cache_timeouts | 0 |
| Ssl_sessions_reused | 0 |
| Ssl_used_session_cache_entries | 0 |
| Ssl_verify_depth | 0 |
| Ssl_verify_mode | 0 |
| Ssl_version | |
| Table_locks_immediate | 3219868 |
| Table_locks_waited | 5213 |
| Threads_cached | 0 |
| Threads_connected | 8 |
| Threads_created | 143654 |
| Threads_running | 1 |
| Uptime | 79931 |
+--------------------------------+------------+
Uptime: 79932 Threads: 11 Questions: 2144941 Slow queries: 30 Opens: 248461 Flush tables: 1 Open tables: 64 Queries per second avg: 26.835
mysqladmin Ver 8.41 Distrib 4.1.16, for redhat-linux-gnu on i386
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version 4.1.16-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 22 hours 12 min 12 sec

Threads: 12 Questions: 2144946 Slow queries: 30 Opens: 248461 Flush tables: 1 Open tables: 64 Queries per second avg: 26.835

./mysqlreport --all -tab /statistics.txt
MySQL 4.1.16-log uptime 0 23:26:54 Wed Apr 19 20:07:53 2006

__ Key __________________________________________________ _______________
Buffer usage 7.08M of 8.00M %Used: 88.48
Write ratio 0.29
Read ratio 0.01

__ Questions __________________________________________________ _________
Total 2.30M 27.24/s
DMS 1.99M 23.59/s %Total: 86.61
Com_ 154.45k 1.83/s 6.72
COM_QUIT 153.47k 1.82/s 6.67
-Unknown 6 0.00/s 0.00
Slow 40 0.00/s 0.00 %DMS: 0.00
DMS 1.99M 23.59/s 86.61
SELECT 1.72M 20.36/s 74.73 86.28
UPDATE 178.23k 2.11/s 7.75 8.95
INSERT 56.28k 0.67/s 2.45 2.83
REPLACE 28.21k 0.33/s 1.23 1.42
DELETE 10.47k 0.12/s 0.46 0.53
Com_ 154.45k 1.83/s 6.72
change_db 151.91k 1.80/s 6.61
show_tables 678 0.01/s 0.03
show_fields 618 0.01/s 0.03

__ SELECT and Sort __________________________________________________ ___
Scan 358.35k 4.25/s %SELECT: 20.85
Range 550.70k 6.52/s 32.04
Full join 12.13k 0.14/s 0.71
Range check 0 0.00/s 0.00
Full rng join 0 0.00/s 0.00
Sort scan 125.31k 1.48/s
Sort range 203.64k 2.41/s
Sort mrg pass 1.60k 0.02/s

__ Table Locks __________________________________________________ _______
Waited 5.84k 0.07/s %Total: 0.17
Immediate 3.45M 40.92/s

__ Tables __________________________________________________ ____________
Open 64 of 64 %Cache: 100.00
Opened 269.09k 3.19/s

__ Connections __________________________________________________ _______
Max used 42 of 250 %Max: 16.80
Total 153.48k 1.82/s

__ Created Temp __________________________________________________ ______
Disk table 14.45k 0.17/s
Table 84.77k 1.00/s
File 3.21k 0.04/s

__ Threads __________________________________________________ ___________
Running 1 of 4
Cache 0 %Hit: 0
Created 153.48k 1.82/s
Slow 156 0.00/s

__ Aborted __________________________________________________ ___________
Clients 14 0.00/s
Connects 0 0.00/s

__ Bytes __________________________________________________ _____________
Sent 1.12G 13.21k/s
Received 767.26M 9.09k/s

8.
My two vB sites: Kiwi Biker (http://www.kiwibiker.co.nz/) & SV Portal (http://www.sv1000.zyns.com/)
Mail server: postfix/cyrus/SquirrelMail/web-cyradm. Only 69 accounts so far as only offered to senior members of my Kiwi Biker site.
B2evolutoin blogs using the Kiwi Biker database. Only a couple blogs at the moment.

9.
Kiwi Biker: 100-200 users / 900 cookie timeout
SV Portal: 50-80 users / 900 cookie timeout

10. http://www.kiwibiker.co.nz/phpinfo.php

11.
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 6
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 175

AND Maxrequestsperchild value = 1000

12. vB 3.5.4

13. Nothing over 2GB

14.
uname -a
Linux kiwibiker 2.6.15-1.1833_FC4 #1 Wed Mar 1 23:41:37 EST 2006 i686 i686 i386 GNU/Linux

ulimit -aH
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 16255
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 16255
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Celeron(R) CPU 2.40GHz
stepping : 1
cpu MHz : 2400.983
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pni monitor ds_cpl cid xtpr
bogomips : 4805.89

eva2000
Wed 19th Apr '06, 10:19am
1. Upgrade MySQL server to 4.1.18 http://www.vbulletin.com/forum/showthread.php?t=175163
2. Downgrade PHP to 4.4.2
3. Edit /etc/my.cnf and place the following mysql server settings in /etc/my.cnf and restart mysql server afterwards


[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
safe-show-database
old_passwords
back_log = 50
skip-innodb
max_connections = 350
key_buffer = 16M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 120
connect_timeout = 10
tmp_table_size = 64M
max_heap_table_size = 64M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
query_cache_limit = 3M
query_cache_size = 80M
query_cache_type = 1
query_prealloc_size = 163840
query_alloc_block_size = 32768
default-storage-engine = MyISAM

[mysql.server]
user=mysql
basedir=/var/lib

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

[mysqlhotcopy]
interactive-timeout


4. Install APC Cache lastest version from http://pecl.php.net/package/APC. Read install guide at http://www.vbulletin.com/forum/showthread.php?t=165367 - please remove Zend Optimizer from php.ini before installing APC Cache

5. If you just upgraded to vB 3.5.x try to disable these 4 options:

Admin CP -> vBulletin Options -> Forums Home Page Options -> Display Logged in Users?

Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Show Users Browsing Forums

Admin CP -> vBulletin Options -> Thread Display Options -> Show Users Browsing Thread

Admin CP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread search

6. Edit httpd.conf values from

KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 6
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 175

AND Maxrequestsperchild value = 1000

to

KeepAlive On
MaxKeepAliveRequests 120
KeepAliveTimeout 6
MinSpareServers 10
MaxSpareServers 15
StartServers 10
MaxClients 150

AND Maxrequestsperchild value = 5000

restart apache

SpankMe
Tue 17th Oct '06, 5:39am
I've just upgraded the server from 1GB to 2GB memory as the server still sometimes grinds to a halt for an hour or more due to excessive wio, and am now running vB 3.6.0. Nothing else has changed on the server.

What changes should I make to the config you posted above?

eva2000
Sat 21st Oct '06, 1:08am
sounds like your celeron cpu and slow IDE disk isn't handling the load

can you repost output for these 2 commands

top

mysqladmin -u root -p var ext ver > stats.txt

open the stats.txt file to copy and paste it's contents.

SpankMe
Sat 21st Oct '06, 2:11am
In case I wasn't clear before, I haven't had any problems since I upgraded to 2GB memory. But I only did the upgrade a few days ago, but it has been giving the vB site users a better responce time. Will know better after running it for a couple of weeks.


top
top - 18:01:09 up 3 days, 12:05, 1 user, load average: 0.51, 0.53, 0.58
Tasks: 124 total, 3 running, 121 sleeping, 0 stopped, 0 zombie
Cpu(s): 48.7% us, 4.9% sy, 0.0% ni, 46.4% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2067500k total, 1982184k used, 85316k free, 58744k buffers
Swap: 2096472k total, 6208k used, 2090264k free, 1577696k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25396 apache 15 0 58284 13m 6752 S 17.1 0.7 0:01.12 httpd
25262 apache 15 0 60584 19m 10m S 8.5 1.0 0:02.49 httpd
25485 apache 15 0 57896 11m 5428 S 8.5 0.6 0:00.59 httpd
2036 mysql 15 0 150m 118m 3476 S 7.6 5.9 340:22.17 mysqld
25425 apache 16 0 58132 12m 6148 R 2.3 0.6 0:00.90 httpd
25360 apache 15 0 57944 13m 6776 S 2.0 0.7 0:01.37 httpd
25421 apache 16 0 60404 18m 9848 S 2.0 0.9 0:01.32 httpd
25493 apache 15 0 56792 9772 4248 S 2.0 0.5 0:00.06 httpd
25404 webboy 15 0 2020 1048 804 R 0.3 0.1 0:00.22 top
1 root 15 0 1744 576 500 S 0.0 0.0 0:00.74 init
2 root 34 19 0 0 0 S 0.0 0.0 0:00.24 ksoftirqd/0
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
4 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 events/0
5 root 14 -5 0 0 0 S 0.0 0.0 0:00.01 khelper
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
10 root 10 -5 0 0 0 S 0.0 0.0 0:03.32 kblockd/0
11 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid
267 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
271 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod
334 root 15 0 0 0 0 S 0.0 0.0 0:04.12 pdflush
335 root 15 0 0 0 0 S 0.0 0.0 0:03.61 kswapd0
336 root 19 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0
493 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
507 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0
511 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
512 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
523 root 10 -5 0 0 0 S 0.0 0.0 0:33.52 kjournald
709 root 16 -4 1648 420 328 S 0.0 0.0 0:00.25 udevd
1133 root 10 -5 0 0 0 S 0.0 0.0 0:00.30 kauditd
1341 root 11 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald
1686 root 15 0 1612 600 508 S 0.0 0.0 0:04.55 syslogd
1688 root 15 0 1568 396 328 S 0.0 0.0 0:00.00 klogd
1702 rpc 22 0 1692 540 444 S 0.0 0.0 0:00.00 portmap
1719 rpcuser 24 0 1736 712 616 S 0.0 0.0 0:00.00 rpc.statd
1731 root 12 -3 11956 668 468 S 0.0 0.0 0:07.98 auditd
1757 root 15 0 4380 380 204 S 0.0 0.0 0:00.06 rpc.idmapd
1845 root 16 0 1828 704 584 S 0.0 0.0 0:00.35 automount
1856 root 15 0 2740 480 392 S 0.0 0.0 0:03.57 nifd
1885 nobody 16 0 13432 964 524 S 0.0 0.0 0:00.01 mDNSResponder
1893 root 16 0 1556 464 392 S 0.0 0.0 0:00.00 acpid
1901 root 15 0 8256 1884 1428 S 0.0 0.1 0:00.03 cupsd
1956 root 16 0 4404 1064 760 S 0.0 0.1 0:00.29 sshd
1966 ntp 15 0 4044 4044 3044 S 0.0 0.2 0:00.52 ntpd
2008 root 25 0 4376 1248 1084 S 0.0 0.1 0:00.02 mysqld_safe
2113 cyrus 15 0 4904 1112 896 S 0.0 0.1 0:03.09 cyrus-master
2123 cyrus 15 0 28728 280 96 S 0.0 0.0 0:00.69 idled
2125 cyrus 16 0 30184 1920 1640 S 0.0 0.1 0:00.00 imapd
2126 cyrus 16 0 30184 1924 1648 S 0.0 0.1 0:00.00 imapd
2127 cyrus 16 0 29948 1916 1632 S 0.0 0.1 0:00.00 pop3d
2128 cyrus 16 0 29948 1928 1640 S 0.0 0.1 0:00.01 pop3d
2131 cyrus 16 0 30184 1924 1648 S 0.0 0.1 0:00.00 imapd
2133 cyrus 16 0 29952 1928 1640 S 0.0 0.1 0:00.01 pop3d
2134 cyrus 15 0 30184 1920 1640 S 0.0 0.1 0:00.00 imapd
2135 cyrus 15 0 30184 1920 1640 S 0.0 0.1 0:00.00 imapd
2136 cyrus 15 0 30184 1916 1640 S 0.0 0.1 0:00.00 imapd
2137 cyrus 15 0 30188 1920 1640 S 0.0 0.1 0:00.01 imapd
2138 cyrus 15 0 29952 1916 1632 S 0.0 0.1 0:00.00 pop3d
2139 cyrus 15 0 29948 1912 1632 S 0.0 0.1 0:00.00 pop3d
2185 root 16 0 1772 352 280 S 0.0 0.0 0:00.00 gpm
2201 root 16 0 55436 10m 6620 S 0.0 0.5 1:02.89 httpd
2208 root 16 0 4564 940 548 S 0.0 0.0 0:00.74 crond
2256 root 15 0 7048 1612 1360 S 0.0 0.1 0:08.69 master
2258 postfix 15 0 7408 2004 1424 S 0.0 0.1 0:05.08 qmgr
2270 xfs 15 0 2932 1172 788 S 0.0 0.1 0:00.00 xfs

mysqladmin -u root -p var ext stat ver
[root@kiwibiker ~]# cat stats.txt
+---------------------------------+--------------------------------------------------------+
| Variable_name | Value |
+---------------------------------+--------------------------------------------------------+
| back_log | 50 |
| basedir | /usr/ |
| bdb_cache_size | 8388600 |
| bdb_home | /var/lib/mysql/ |
| bdb_log_buffer_size | 921600 |
| bdb_logdir | |
| bdb_max_lock | 10000 |
| bdb_shared_data | OFF |
| bdb_tmpdir | /tmp/ |
| binlog_cache_size | 32768 |
| bulk_insert_buffer_size | 8388608 |
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
| collation_connection | latin1_swedish_ci |
| collation_database | latin1_swedish_ci |
| collation_server | latin1_swedish_ci |
| concurrent_insert | ON |
| connect_timeout | 10 |
| datadir | /var/lib/mysql/ |
| date_format | %Y-%m-%d |
| datetime_format | %Y-%m-%d %H:%i:%s |
| default_week_format | 0 |
| delay_key_write | ON |
| delayed_insert_limit | 100 |
| delayed_insert_timeout | 300 |
| delayed_queue_size | 1000 |
| expire_logs_days | 0 |
| flush | OFF |
| flush_time | 0 |
| ft_boolean_syntax | + -><()~*:""&| |
| ft_max_word_len | 84 |
| ft_min_word_len | 3 |
| ft_query_expansion_limit | 20 |
| ft_stopword_file | (built-in) |
| group_concat_max_len | 1024 |
| have_archive | NO |
| have_bdb | YES |
| have_blackhole_engine | NO |
| have_compress | YES |
| have_crypt | YES |
| have_csv | NO |
| have_example_engine | NO |
| have_geometry | YES |
| have_innodb | DISABLED |
| have_isam | YES |
| have_ndbcluster | NO |
| have_openssl | YES |
| have_query_cache | YES |
| have_raid | NO |
| have_rtree_keys | YES |
| have_symlink | YES |
| init_connect | |
| init_file | |
| init_slave | |
| innodb_additional_mem_pool_size | 1048576 |
| innodb_autoextend_increment | 8 |
| innodb_buffer_pool_awe_mem_mb | 0 |
| innodb_buffer_pool_size | 8388608 |
| innodb_data_file_path | |
| innodb_data_home_dir | |
| innodb_fast_shutdown | ON |
| innodb_file_io_threads | 4 |
| innodb_file_per_table | OFF |
| innodb_flush_log_at_trx_commit | 1 |
| innodb_flush_method | |
| innodb_force_recovery | 0 |
| innodb_lock_wait_timeout | 50 |
| innodb_locks_unsafe_for_binlog | OFF |
| innodb_log_arch_dir | |
| innodb_log_archive | OFF |
| innodb_log_buffer_size | 1048576 |
| innodb_log_file_size | 5242880 |
| innodb_log_files_in_group | 2 |
| innodb_log_group_home_dir | |
| innodb_max_dirty_pages_pct | 90 |
| innodb_max_purge_lag | 0 |
| innodb_mirrored_log_groups | 1 |
| innodb_open_files | 300 |
| innodb_table_locks | ON |
| innodb_thread_concurrency | 8 |
| interactive_timeout | 28800 |
| join_buffer_size | 1044480 |
| key_buffer_size | 16777216 |
| key_cache_age_threshold | 300 |
| key_cache_block_size | 1024 |
| key_cache_division_limit | 100 |
| language | /usr/share/mysql/english/ |
| large_files_support | ON |
| license | GPL |
| local_infile | ON |
| locked_in_memory | OFF |
| log | OFF |
| log_bin | OFF |
| log_error | |
| log_slave_updates | OFF |
| log_slow_queries | OFF |
| log_update | OFF |
| log_warnings | 1 |
| long_query_time | 10 |
| low_priority_updates | OFF |
| lower_case_file_system | OFF |
| lower_case_table_names | 0 |
| max_allowed_packet | 67107840 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connect_errors | 10 |
| max_connections | 350 |
| max_delayed_threads | 20 |
| max_error_count | 64 |
| max_heap_table_size | 67107840 |
| max_insert_delayed_threads | 20 |
| max_join_size | 4294967295 |
| max_length_for_sort_data | 1024 |
| max_prepared_stmt_count | 16382 |
| max_relay_log_size | 0 |
| max_seeks_for_key | 4294967295 |
| max_sort_length | 1024 |
| max_tmp_tables | 32 |
| max_user_connections | 0 |
| max_write_lock_count | 4294967295 |
| myisam_data_pointer_size | 4 |
| myisam_max_extra_sort_file_size | 2147483648 |
| myisam_max_sort_file_size | 2147483647 |
| myisam_recover_options | OFF |
| myisam_repair_threads | 1 |
| myisam_sort_buffer_size | 67108864 |
| myisam_stats_method | nulls_unequal |
| net_buffer_length | 16384 |
| net_read_timeout | 30 |
| net_retry_count | 10 |
| net_write_timeout | 60 |
| new | OFF |
| old_passwords | ON |
| open_files_limit | 3960 |
| pid_file | /var/run/mysqld/mysqld.pid |
| port | 3306 |
| preload_buffer_size | 32768 |
| prepared_stmt_count | 0 |
| protocol_version | 10 |
| query_alloc_block_size | 32768 |
| query_cache_limit | 3145728 |
| query_cache_min_res_unit | 4096 |
| query_cache_size | 83886080 |
| query_cache_type | ON |
| query_cache_wlock_invalidate | OFF |
| query_prealloc_size | 163840 |
| range_alloc_block_size | 2048 |
| read_buffer_size | 1044480 |
| read_only | OFF |
| read_rnd_buffer_size | 520192 |
| relay_log_purge | ON |
| relay_log_space_limit | 0 |
| rpl_recovery_rank | 0 |
| secure_auth | OFF |
| server_id | 0 |
| skip_external_locking | ON |
| skip_networking | OFF |
| skip_show_database | OFF |
| slave_net_timeout | 3600 |
| slave_transaction_retries | 0 |
| slow_launch_time | 2 |
| socket | /var/lib/mysql/mysql.sock |
| sort_buffer_size | 2097144 |
| sql_mode | |
| sql_notes | ON |
| sql_warnings | ON |
| storage_engine | MyISAM |
| sync_binlog | 0 |
| sync_frm | ON |
| sync_replication | 0 |
| sync_replication_slave_id | 0 |
| sync_replication_timeout | 0 |
| system_time_zone | NZDT |
| table_cache | 1800 |
| table_type | MyISAM |
| thread_cache_size | 384 |
| thread_stack | 196608 |
| time_format | %H:%i:%s |
| time_zone | SYSTEM |
| tmp_table_size | 67108864 |
| tmpdir | |
| transaction_alloc_block_size | 8192 |
| transaction_prealloc_size | 4096 |
| tx_isolation | REPEATABLE-READ |
| version | 4.1.20 |
| version_bdb | Sleepycat Software: Berkeley DB 4.1.24: (May 24, 2006) |
| version_comment | Source distribution |
| version_compile_machine | i386 |
| version_compile_os | redhat-linux-gnu |
| wait_timeout | 120 |
+---------------------------------+--------------------------------------------------------+
+--------------------------------+------------+
| Variable_name | Value |
+--------------------------------+------------+
| Aborted_clients | 640 |
| Aborted_connects | 0 |
| Binlog_cache_disk_use | 0 |
| Binlog_cache_use | 0 |
| Bytes_received | 3194492783 |
| Bytes_sent | 3034734700 |
| Com_admin_commands | 1 |
| Com_alter_db | 0 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 584251 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_checksum | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 0 |
| Com_dealloc_sql | 0 |
| Com_delete | 50649 |
| Com_delete_multi | 0 |
| Com_do | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 0 |
| Com_drop_user | 0 |
| Com_execute_sql | 0 |
| Com_flush | 0 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_help | 0 |
| Com_insert | 318734 |
| Com_insert_select | 0 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 12 |
| Com_optimize | 0 |
| Com_preload_keys | 0 |
| Com_prepare_sql | 0 |
| Com_purge | 0 |
| Com_purge_before_date | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 135793 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_revoke_all | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 3030875 |
| Com_set_option | 57836 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_charsets | 0 |
| Com_show_collations | 0 |
| Com_show_column_types | 0 |
| Com_show_create_db | 0 |
| Com_show_create_table | 1476 |
| Com_show_databases | 0 |
| Com_show_errors | 0 |
| Com_show_fields | 1476 |
| Com_show_grants | 0 |
| Com_show_innodb_status | 0 |
| Com_show_keys | 0 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_ndb_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_privileges | 0 |
| Com_show_processlist | 0 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 3 |
| Com_show_storage_engines | 0 |
| Com_show_tables | 1553 |
| Com_show_variables | 30 |
| Com_show_warnings | 0 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_stmt_close | 0 |
| Com_stmt_execute | 0 |
| Com_stmt_prepare | 0 |
| Com_stmt_reset | 0 |
| Com_stmt_send_long_data | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 12 |
| Com_update | 682300 |
| Com_update_multi | 0 |
| Connections | 591064 |
| Created_tmp_disk_tables | 50652 |
| Created_tmp_files | 2752 |
| Created_tmp_tables | 367753 |
| Delayed_errors | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 213836 |
| Handler_discover | 0 |
| Handler_read_first | 410569 |
| Handler_read_key | 215541139 |
| Handler_read_next | 625916524 |
| Handler_read_prev | 9495292 |
| Handler_read_rnd | 32305708 |
| Handler_read_rnd_next | 1134266155 |
| Handler_rollback | 0 |
| Handler_update | 1499197 |
| Handler_write | 29018409 |
| Key_blocks_not_flushed | 0 |
| Key_blocks_unused | 0 |
| Key_blocks_used | 14497 |
| Key_read_requests | 651975525 |
| Key_reads | 3385395 |
| Key_write_requests | 2860785 |
| Key_writes | 988286 |
| Max_used_connections | 37 |
| Not_flushed_delayed_rows | 0 |
| Open_files | 1257 |
| Open_streams | 0 |
| Open_tables | 805 |
| Opened_tables | 811 |
| Qcache_free_blocks | 10755 |
| Qcache_free_memory | 55118112 |
| Qcache_hits | 3892649 |
| Qcache_inserts | 2991500 |
| Qcache_lowmem_prunes | 197665 |
| Qcache_not_cached | 37899 |
| Qcache_queries_in_cache | 12267 |
| Qcache_total_blocks | 36012 |
| Questions | 9348390 |
| Rpl_status | NULL |
| Select_full_join | 46918 |
| Select_full_range_join | 0 |
| Select_range | 782346 |
| Select_range_check | 0 |
| Select_scan | 623618 |
| Slave_open_temp_tables | 0 |
| Slave_retried_transactions | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 0 |
| Slow_queries | 41 |
| Sort_merge_passes | 1376 |
| Sort_range | 474685 |
| Sort_rows | 140591015 |
| Sort_scan | 340305 |
| Ssl_accept_renegotiates | 0 |
| Ssl_accepts | 0 |
| Ssl_callback_cache_hits | 0 |
| Ssl_cipher | |
| Ssl_cipher_list | |
| Ssl_client_connects | 0 |
| Ssl_connect_renegotiates | 0 |
| Ssl_ctx_verify_depth | 0 |
| Ssl_ctx_verify_mode | 0 |
| Ssl_default_timeout | 0 |
| Ssl_finished_accepts | 0 |
| Ssl_finished_connects | 0 |
| Ssl_session_cache_hits | 0 |
| Ssl_session_cache_misses | 0 |
| Ssl_session_cache_mode | NONE |
| Ssl_session_cache_overflows | 0 |
| Ssl_session_cache_size | 0 |
| Ssl_session_cache_timeouts | 0 |
| Ssl_sessions_reused | 0 |
| Ssl_used_session_cache_entries | 0 |
| Ssl_verify_depth | 0 |
| Ssl_verify_mode | 0 |
| Ssl_version | |
| Table_locks_immediate | 8872350 |
| Table_locks_waited | 11159 |
| Threads_cached | 36 |
| Threads_connected | 1 |
| Threads_created | 37 |
| Threads_running | 1 |
| Uptime | 303132 |
+--------------------------------+------------+
mysqladmin Ver 8.41 Distrib 4.1.20, for redhat-linux-gnu on i386
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version 4.1.20
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /var/lib/mysql/mysql.sock
Uptime: 3 days 12 hours 12 min 12 sec

Threads: 1 Questions: 9348391 Slow queries: 41 Opens: 811 Flush tables: 1 Open tables: 805 Queries per second avg: 30.839
[root@kiwibiker ~]#

Also have online stats you can access.
http://www.kiwibiker.co.nz/monitorix/

eva2000
Sat 21st Oct '06, 9:44am
i'd upgrade to mysql 4.1.21 if you can you i think your occasional issue might be due to the slow IDE disks and cpu.