PDA

View Full Version : Server optimization request


VitorHP
Wed 19th Sep '07, 3:31pm
1. Is this on dedicated or shared virual server. If shared, how many sites share this server (ask web host if needed)

It's a Virtual Private Server (RAM and CPU privated to my website)

2. your server specs.

RAM: 408 MB
CPU: 408 MHz
Apache version: 2.0.54
PHP version: 5.2.3
MySQL version: 5.0.16

3. what version of vB are you running ?

3.6.8

4. if you use mysql 4.x instead of mysql 3.23.x, do you have any innodb type databases/tables on your server ?

No.

5. If possible how mysql was compiled/installed.

By DreamHost PS Team (host)

6. Your top stats.

RAM Memory stay 700+ RAM, and host stay instable

7.

Mysql Variables


auto_increment_increment 1 auto_increment_offset 1 automatic_sp_privileges ON back_log 50 basedir /data/mysql/bevill/ binlog_cache_size 32768 bulk_insert_buffer_size 8388608 character_set_client latin1 character_set_connection latin1 character_set_database latin1 character_set_filesystem binary character_set_results latin1 character_set_server latin1 character_set_system utf8 character_sets_dir /data/mysql/bevill/share/mysql/charsets/ collation_connection latin1_swedish_ci collation_database latin1_swedish_ci collation_server latin1_swedish_ci completion_type 0 concurrent_insert 1 connect_timeout 5 datadir /dh/mysql/bevill/data/ 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 div_precision_increment 4 engine_condition_pushdown OFF 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 YES have_bdb NO have_blackhole_engine NO have_compress YES have_crypt YES have_csv NO have_dynamic_loading NO have_example_engine NO have_federated_engine NO have_geometry YES have_innodb YES have_isam NO have_ndbcluster NO have_merge_engine YES have_openssl DISABLED 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 7340032 innodb_checksums ON innodb_commit_concurrency 0 innodb_concurrency_tickets 500 innodb_data_file_path ibdata1:10M:autoextend innodb_data_home_dir innodb_doublewrite ON innodb_fast_shutdown 1 innodb_file_io_threads 4 innodb_file_per_table ON 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 2097152 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 1000 innodb_support_xa ON innodb_sync_spin_loops 20 innodb_table_locks ON innodb_thread_concurrency 8 innodb_thread_sleep_delay 10000 interactive_timeout 28800 join_buffer_size 1044480 key_buffer_size 7340032 key_cache_age_threshold 300 key_cache_block_size 1024 key_cache_division_limit 100 language /data/mysql/bevill/share/mysql/english/ large_files_support ON large_page_size 0 large_pages OFF license GPL local_infile ON locked_in_memory OFF log ON log_bin OFF log_bin_trust_function_creators OFF log_error /dh/mysql/logs/mysql.bevill.err log_queries_not_using_indexes ON log_slave_updates OFF log_slow_queries ON log_warnings 2 long_query_time 10 low_priority_updates OFF lower_case_file_system OFF lower_case_table_names 0 max_allowed_packet 16776192 max_binlog_cache_size 4294967295 max_binlog_size 1073741824 max_connect_errors 10000 max_connections 1200 max_delayed_threads 20 max_error_count 64 max_heap_table_size 16777216 max_insert_delayed_threads 20 max_join_size 18446744073709551615 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_sp_recursion_depth 0 max_tmp_tables 32 max_user_connections 300 max_write_lock_count 4294967295 multi_range_count 256 myisam_data_pointer_size 6 myisam_max_sort_file_size 2147483647 myisam_recover_options BACKUP,FORCE 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 ON old_passwords ON open_files_limit 1048566 optimizer_prune_level 1 optimizer_search_depth 62 pid_file /tmp/mysql.bevill.pid port 3306 preload_buffer_size 32768 prepared_stmt_count 0 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 1044480 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 4857 skip_external_locking ON skip_networking OFF skip_show_database OFF slave_compressed_protocol OFF slave_load_tmpdir /tmp/ slave_net_timeout 3600 slave_skip_errors OFF slave_transaction_retries 10 slow_launch_time 2 socket /tmp/mysql.bevill.sock sort_buffer_size 1048568 sql_big_selects ON sql_mode sql_notes ON sql_warnings OFF ssl_ca ssl_capath ssl_cert ssl_cipher ssl_key storage_engine MyISAM sync_binlog 0 sync_frm ON system_time_zone PDT table_cache 350 table_lock_wait_timeout 50 table_type MyISAM thread_cache_size 20 thread_stack 126976 time_format %H:%i:%s time_zone SYSTEM timed_mutexes OFF tmp_table_size 33554432 tmpdir /tmp/ transaction_alloc_block_size 8192 transaction_prealloc_size 4096 tx_isolation REPEATABLE-READ updatable_views_with_limit YES version 5.0.24a-standard-log version_comment MySQL Community Edition - Standard (GPL) version_compile_machine i686 version_compile_os pc-linux-gnu wait_timeout 14400

Mysql State


Aborted_clients 18 Aborted_connects 1 Binlog_cache_disk_use 0 Binlog_cache_use 0 Bytes_received 2221 Bytes_sent 269748 Com_admin_commands 0 Com_alter_db 0 Com_alter_table 0 Com_analyze 0 Com_backup_table 0 Com_begin 0 Com_change_db 1 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 0 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 0 Com_insert_select 0 Com_kill 0 Com_load 0 Com_load_master_data 0 Com_load_master_table 0 Com_lock_tables 0 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 0 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 5 Com_set_option 0 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 0 Com_show_databases 0 Com_show_errors 0 Com_show_fields 0 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 1 Com_show_storage_engines 0 Com_show_tables 0 Com_show_triggers 0 Com_show_variables 0 Com_show_warnings 0 Com_slave_start 0 Com_slave_stop 0 Com_stmt_close 0 Com_stmt_execute 0 Com_stmt_fetch 0 Com_stmt_prepare 0 Com_stmt_reset 0 Com_stmt_send_long_data 0 Com_truncate 0 Com_unlock_tables 0 Com_update 1 Com_update_multi 0 Com_xa_commit 0 Com_xa_end 0 Com_xa_prepare 0 Com_xa_recover 0 Com_xa_rollback 0 Com_xa_start 0 Compression OFF Connections 26089 Created_tmp_disk_tables 0 Created_tmp_files 37 Created_tmp_tables 1 Delayed_errors 0 Delayed_insert_threads 0 Delayed_writes 0 Flush_commands 1 Handler_commit 0 Handler_delete 0 Handler_discover 0 Handler_prepare 0 Handler_read_first 2 Handler_read_key 21 Handler_read_next 1395 Handler_read_prev 0 Handler_read_rnd 0 Handler_read_rnd_next 2 Handler_rollback 0 Handler_savepoint 0 Handler_savepoint_rollback 0 Handler_update 1 Handler_write 130 Innodb_buffer_pool_pages_data 155 Innodb_buffer_pool_pages_dirty 0 Innodb_buffer_pool_pages_flushed 116 Innodb_buffer_pool_pages_free 292 Innodb_buffer_pool_pages_latched 0 Innodb_buffer_pool_pages_misc 1 Innodb_buffer_pool_pages_total 448 Innodb_buffer_pool_read_ahead_rnd 3 Innodb_buffer_pool_read_ahead_seq 0 Innodb_buffer_pool_read_requests 13613 Innodb_buffer_pool_reads 130 Innodb_buffer_pool_wait_free 0 Innodb_buffer_pool_write_requests 290 Innodb_data_fsyncs 194 Innodb_data_pending_fsyncs 0 Innodb_data_pending_reads 0 Innodb_data_pending_writes 0 Innodb_data_read 4722688 Innodb_data_reads 166 Innodb_data_writes 228 Innodb_data_written 3877376 Innodb_dblwr_pages_written 116 Innodb_dblwr_writes 28 Innodb_log_waits 0 Innodb_log_write_requests 80 Innodb_log_writes 60 Innodb_os_log_fsyncs 88 Innodb_os_log_pending_fsyncs 0 Innodb_os_log_pending_writes 0 Innodb_os_log_written 61952 Innodb_page_size 16384 Innodb_pages_created 0 Innodb_pages_read 155 Innodb_pages_written 116 Innodb_row_lock_current_waits 0 Innodb_row_lock_time 0 Innodb_row_lock_time_avg 0 Innodb_row_lock_time_max 0 Innodb_row_lock_waits 0 Innodb_rows_deleted 5 Innodb_rows_inserted 4 Innodb_rows_read 974 Innodb_rows_updated 42 Key_blocks_not_flushed 0 Key_blocks_unused 0 Key_blocks_used 6365 Key_read_requests 15854176 Key_reads 59371 Key_write_requests 401224 Key_writes 30686 Last_query_cost 298.288258 Max_used_connections 33 Not_flushed_delayed_rows 0 Open_files 592 Open_streams 0 Open_tables 350 Opened_tables 0 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 458655 Rpl_status NULL Select_full_join 0 Select_full_range_join 0 Select_range 1 Select_range_check 0 Select_scan 2 Slave_open_temp_tables 0 Slave_retried_transactions 0 Slave_running OFF Slow_launch_threads 7 Slow_queries 1 Sort_merge_passes 0 Sort_range 0 Sort_rows 0 Sort_scan 0 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 535775 Table_locks_waited 4243 Tc_log_max_pages_used 0 Tc_log_page_size 0 Tc_log_page_waits 0 Threads_cached 13 Threads_connected 9 Threads_created 85 Threads_running 1 Uptime 14741
8. MySQL stats from ssh telnet as root user type:


+---------------------------------+------------------------------------------+
| Variable_name | Value |
+---------------------------------+------------------------------------------+
| auto_increment_increment | 1 |
| auto_increment_offset | 1 |
| automatic_sp_privileges | ON |
| back_log | 50 |
| basedir | /data/mysql/bevill/ |
| binlog_cache_size | 32768 |
| bulk_insert_buffer_size | 8388608 |
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /data/mysql/bevill/share/mysql/charsets/ |
| collation_connection | latin1_swedish_ci |
| collation_database | latin1_swedish_ci |
| collation_server | latin1_swedish_ci |
| completion_type | 0 |
| concurrent_insert | 1 |
| connect_timeout | 5 |
| datadir | /dh/mysql/bevill/data/ |
| 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 |
| div_precision_increment | 4 |
| engine_condition_pushdown | OFF |
| 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 | YES |
| have_bdb | NO |
| have_blackhole_engine | NO |
| have_compress | YES |
| have_crypt | YES |
| have_csv | NO |
| have_dynamic_loading | NO |
| have_example_engine | NO |
| have_federated_engine | NO |
| have_geometry | YES |
| have_innodb | YES |
| have_isam | NO |
| have_ndbcluster | NO |
| have_merge_engine | YES |
| have_openssl | DISABLED |
| 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 | 7340032 |
| innodb_checksums | ON |
| innodb_commit_concurrency | 0 |
| innodb_concurrency_tickets | 500 |
| innodb_data_file_path | ibdata1:10M:autoextend |
| innodb_data_home_dir | |
| innodb_doublewrite | ON |
| innodb_fast_shutdown | 1 |
| innodb_file_io_threads | 4 |
| innodb_file_per_table | ON |
| 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 | 2097152 |
| 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 | 1000 |
| innodb_support_xa | ON |
| innodb_sync_spin_loops | 20 |
| innodb_table_locks | ON |
| innodb_thread_concurrency | 8 |
| innodb_thread_sleep_delay | 10000 |
| interactive_timeout | 28800 |
| join_buffer_size | 1044480 |
| key_buffer_size | 7340032 |
| key_cache_age_threshold | 300 |
| key_cache_block_size | 1024 |
| key_cache_division_limit | 100 |
| language | /data/mysql/bevill/share/mysql/english/ |
| large_files_support | ON |
| large_page_size | 0 |
| large_pages | OFF |
| license | GPL |
| local_infile | ON |
| locked_in_memory | OFF |
| log | ON |
| log_bin | OFF |
| log_bin_trust_function_creators | OFF |
| log_error | /dh/mysql/logs/mysql.bevill.err |
| log_queries_not_using_indexes | ON |
| log_slave_updates | OFF |
| log_slow_queries | ON |
| log_warnings | 2 |
| long_query_time | 10 |
| low_priority_updates | OFF |
| lower_case_file_system | OFF |
| lower_case_table_names | 0 |
| max_allowed_packet | 16776192 |
| max_binlog_cache_size | 4294967295 |
| max_binlog_size | 1073741824 |
| max_connect_errors | 10000 |
| max_connections | 1200 |
| max_delayed_threads | 20 |
| max_error_count | 64 |
| max_heap_table_size | 16777216 |
| max_insert_delayed_threads | 20 |
| max_join_size | 18446744073709551615 |
| 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_sp_recursion_depth | 0 |
| max_tmp_tables | 32 |
| max_user_connections | 300 |
| max_write_lock_count | 4294967295 |
| multi_range_count | 256 |
| myisam_data_pointer_size | 6 |
| myisam_max_sort_file_size | 2147483647 |
| myisam_recover_options | BACKUP,FORCE |
| 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 | ON |
| old_passwords | ON |
| open_files_limit | 1048566 |
| optimizer_prune_level | 1 |
| optimizer_search_depth | 62 |
| pid_file | /tmp/mysql.bevill.pid |
| port | 3306 |
| preload_buffer_size | 32768 |
| prepared_stmt_count | 0 |
| 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 | 1044480 |
| 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 | 4857 |
| skip_external_locking | ON |
| skip_networking | OFF |
| skip_show_database | OFF |
| slave_compressed_protocol | OFF |
| slave_load_tmpdir | /tmp/ |
| slave_net_timeout | 3600 |
| slave_skip_errors | OFF |
| slave_transaction_retries | 10 |
| slow_launch_time | 2 |
| socket | /tmp/mysql.bevill.sock |
| sort_buffer_size | 1048568 |
| sql_big_selects | ON |
| sql_mode | |
| sql_notes | ON |
| sql_warnings | OFF |
| ssl_ca | |
| ssl_capath | |
| ssl_cert | |
| ssl_cipher | |
| ssl_key | |
| storage_engine | MyISAM |
| sync_binlog | 0 |
| sync_frm | ON |
| system_time_zone | PDT |
| table_cache | 350 |
| table_lock_wait_timeout | 50 |
| table_type | MyISAM |
| thread_cache_size | 20 |
| thread_stack | 126976 |
| time_format | %H:%i:%s |
| time_zone | SYSTEM |
| timed_mutexes | OFF |
| tmp_table_size | 33554432 |
| tmpdir | /tmp/ |
| transaction_alloc_block_size | 8192 |
| transaction_prealloc_size | 4096 |
| tx_isolation | REPEATABLE-READ |
| updatable_views_with_limit | YES |
| version | 5.0.24a-standard-log |
| version_comment | MySQL Community Edition - Standard (GPL) |
| version_compile_machine | i686 |
| version_compile_os | pc-linux-gnu |
| wait_timeout | 14400 |
+---------------------------------+------------------------------------------+
+-----------------------------------+------------+
| Variable_name | Value |
+-----------------------------------+------------+
| Aborted_clients | 16 |
| Aborted_connects | 1 |
| Binlog_cache_disk_use | 0 |
| Binlog_cache_use | 0 |
| Bytes_received | 92760396 |
| Bytes_sent | 2053947027 |
| Com_admin_commands | 0 |
| Com_alter_db | 0 |
| Com_alter_table | 0 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 712 |
| Com_change_db | 24300 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_checksum | 0 |
| Com_commit | 694 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 8 |
| Com_dealloc_sql | 0 |
| Com_delete | 2870 |
| Com_delete_multi | 0 |
| Com_do | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 8 |
| Com_drop_user | 0 |
| Com_execute_sql | 0 |
| Com_flush | 1 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_help | 0 |
| Com_insert | 7071 |
| Com_insert_select | 14 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 5 |
| Com_optimize | 16 |
| 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 | 955 |
| 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 | 335736 |
| Com_set_option | 1369 |
| 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 | 0 |
| Com_show_databases | 0 |
| Com_show_errors | 0 |
| Com_show_fields | 4501 |
| Com_show_grants | 0 |
| Com_show_innodb_status | 0 |
| Com_show_keys | 4 |
| 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 | 2311 |
| Com_show_storage_engines | 0 |
| Com_show_tables | 0 |
| Com_show_triggers | 0 |
| Com_show_variables | 3 |
| Com_show_warnings | 0 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_stmt_close | 0 |
| Com_stmt_execute | 0 |
| Com_stmt_fetch | 0 |
| Com_stmt_prepare | 0 |
| Com_stmt_reset | 0 |
| Com_stmt_send_long_data | 0 |
| Com_truncate | 8 |
| Com_unlock_tables | 5 |
| Com_update | 29023 |
| Com_update_multi | 8 |
| Com_xa_commit | 0 |
| Com_xa_end | 0 |
| Com_xa_prepare | 0 |
| Com_xa_recover | 0 |
| Com_xa_rollback | 0 |
| Com_xa_start | 0 |
| Compression | OFF |
| Connections | 24773 |
| Created_tmp_disk_tables | 6966 |
| Created_tmp_files | 37 |
| Created_tmp_tables | 23366 |
| Delayed_errors | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Flush_commands | 1 |
| Handler_commit | 154 |
| Handler_delete | 3544 |
| Handler_discover | 0 |
| Handler_prepare | 0 |
| Handler_read_first | 31782 |
| Handler_read_key | 5403644 |
| Handler_read_next | 5897584 |
| Handler_read_prev | 328150 |
| Handler_read_rnd | 2158847 |
| Handler_read_rnd_next | 46198715 |
| Handler_rollback | 1 |
| Handler_savepoint | 0 |
| Handler_savepoint_rollback | 0 |
| Handler_update | 335232 |
| Handler_write | 1896604 |
| Innodb_buffer_pool_pages_data | 155 |
| Innodb_buffer_pool_pages_dirty | 0 |
| Innodb_buffer_pool_pages_flushed | 104 |
| Innodb_buffer_pool_pages_free | 292 |
| Innodb_buffer_pool_pages_latched | 0 |
| Innodb_buffer_pool_pages_misc | 1 |
| Innodb_buffer_pool_pages_total | 448 |
| Innodb_buffer_pool_read_ahead_rnd | 3 |
| Innodb_buffer_pool_read_ahead_seq | 0 |
| Innodb_buffer_pool_read_requests | 11994 |
| Innodb_buffer_pool_reads | 130 |
| Innodb_buffer_pool_wait_free | 0 |
| Innodb_buffer_pool_write_requests | 250 |
| Innodb_data_fsyncs | 170 |
| Innodb_data_pending_fsyncs | 0 |
| Innodb_data_pending_reads | 0 |
| Innodb_data_pending_writes | 0 |
| Innodb_data_read | 4722688 |
| Innodb_data_reads | 166 |
| Innodb_data_writes | 201 |
| Innodb_data_written | 3476480 |
| Innodb_dblwr_pages_written | 104 |
| Innodb_dblwr_writes | 25 |
| Innodb_log_waits | 0 |
| Innodb_log_write_requests | 77 |
| Innodb_log_writes | 51 |
| Innodb_os_log_fsyncs | 76 |
| Innodb_os_log_pending_fsyncs | 0 |
| Innodb_os_log_pending_writes | 0 |
| Innodb_os_log_written | 55808 |
| Innodb_page_size | 16384 |
| Innodb_pages_created | 0 |
| Innodb_pages_read | 155 |
| Innodb_pages_written | 104 |
| Innodb_row_lock_current_waits | 0 |
| Innodb_row_lock_time | 0 |
| Innodb_row_lock_time_avg | 0 |
| Innodb_row_lock_time_max | 0 |
| Innodb_row_lock_waits | 0 |
| Innodb_rows_deleted | 5 |
| Innodb_rows_inserted | 4 |
| Innodb_rows_read | 936 |
| Innodb_rows_updated | 34 |
| Key_blocks_not_flushed | 6 |
| Key_blocks_unused | 0 |
| Key_blocks_used | 6365 |
| Key_read_requests | 15275428 |
| Key_reads | 57444 |
| Key_write_requests | 365366 |
| Key_writes | 29982 |
| Last_query_cost | 0.000000 |
| Max_used_connections | 33 |
| Not_flushed_delayed_rows | 0 |
| Open_files | 587 |
| Open_streams | 0 |
| Open_tables | 350 |
| Opened_tables | 1920 |
| 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 | 432256 |
| Rpl_status | NULL |
| Select_full_join | 611 |
| Select_full_range_join | 0 |
| Select_range | 48506 |
| Select_range_check | 0 |
| Select_scan | 66041 |
| Slave_open_temp_tables | 0 |
| Slave_retried_transactions | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 7 |
| Slow_queries | 67101 |
| Sort_merge_passes | 16 |
| Sort_range | 19757 |
| Sort_rows | 3465856 |
| Sort_scan | 29678 |
| 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 | 506532 |
| Table_locks_waited | 4137 |
| Tc_log_max_pages_used | 0 |
| Tc_log_page_size | 0 |
| Tc_log_page_waits | 0 |
| Threads_cached | 12 |
| Threads_connected | 10 |
| Threads_created | 85 |
| Threads_running | 3 |
| Uptime | 14081 |
+-----------------------------------+------------+
Uptime: 14084 Threads: 11 Questions: 432296 Slow queries: 67107 Opens: 1920 Flush tables: 1 Open tables: 350 Queries per second avg: 30.694
mysqladmin Ver 8.41 Distrib 5.0.16, for pc-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 5.0.24a-standard-log
Protocol version 10
Connection mysql.otserv.com.br via TCP/IP
TCP port 3306
Uptime: 3 hours 54 min 44 sec

Threads: 11 Questions: 432296 Slow queries: 67107 Opens: 1920 Flush tables: 1 Open tables: 350 Queries per second avg: 30.694

9. Is your vB the only thing on the server?

Yes.

10. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?

150 users current. At weekends 280-300

11. create a file named phpinfo.php and place this code in it and post the url/link to it from your web site

forums.otserv.com.br/phpinfo.php

12. if you run Apache and you have your own dedicated server or access to your httpd.conf (apache configuration file) can you post the values you have set for the following :

Isn't a dedicated server

13. check to see if any files i.e. apache log files are hitting 2GB or 4GB max file size limits i.e. see if you have max file size exceeded messages in apache error log

uname -a

Linux otnet 2.6.19.7-vs+opt+c5+gr2b #9 SMP Thu Jul 19 17:30:52 PDT 2007 i686 GNU/Linux

ulimit -aH

core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited

cat /proc/cpuinfo

processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : Dual-Core AMD Opteron(tm) Processor 1218 HE
stepping : 3
cpu MHz : 2593.662
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc
bogomips : 5190.04

processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 67
model name : Dual-Core AMD Opteron(tm) Processor 1218 HE
stepping : 3
cpu MHz : 2593.662
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc
bogomips : 5187.36



Thank you.

VitorHP
Wed 19th Sep '07, 6:22pm
Sorry for double post, but i forgot.

I already did this:


Disable:

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

Thanks.

VitorHP
Thu 20th Sep '07, 4:09pm
Other strange situation.

At 11:00 a.m. when there are 50 users online the server load stay less than 1.0
At 16:00 p.m. when there are 150 users online the server load stay more than 30.0

:S

Can someone help me?

eva2000
Fri 21st Sep '07, 9:10am
log into ssh telnet of your server near forum peak times, and when you start seeing cpu loads climp 5+ and 10+ and up.. type and post output for these 2 commands

top

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

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

This is so we can see what's happening at peak times

VitorHP
Fri 21st Sep '07, 2:31pm
When cpu loads climp 1 or less:


http://otserv.com.br/stats.txt


When cpu loads climp 15+

top:

top - 10:23:17 up 2 days, 15:41, 1 user, load average: 30.11, 19.39, 22.64
Tasks: 30 total, 13 running, 12 sleeping, 0 stopped, 5 zombie
Cpu(s): 17.8% us, 4.4% sy, 0.0% ni, 74.4% id, 2.7% wa, 0.1% hi, 0.5% si
Mem: 417792k total, 417792k used, 0k free, 0k buffers
Swap: 417792k total, 275488k used, 142304k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5999 otfu 15 0 21652 9.8m 4976 S 1.1 2.4 0:00.06 php5.cgi
6001 otfu 15 0 22308 10m 5000 R 1.1 2.6 0:00.06 php5.cgi
6002 otfu 15 0 21916 9.9m 5000 R 1.1 2.4 0:00.06 php5.cgi
6008 otfu 15 0 21280 9804 4992 R 1.1 2.3 0:00.06 php5.cgi
5985 otfu 15 0 23476 11m 5288 S 0.9 2.9 0:00.11 php5.cgi
6007 otfu 15 0 21648 9m 4984 S 0.9 2.4 0:00.05 php5.cgi
6009 otfu 15 0 21652 9.8m 4972 S 0.9 2.4 0:00.05 php5.cgi
6010 otfu 16 0 21148 9644 4868 R 0.9 2.3 0:00.05 php5.cgi
5650 otfu 15 0 0 0 0 Z 0.7 0.0 0:00.13 php5.cgi <defunct>
6000 otfu 15 0 22448 10m 5196 S 0.7 2.7 0:00.04 php5.cgi
5965 otfu 15 0 0 0 0 Z 0.5 0.0 0:00.13 php5.cgi <defunct>
5988 otfu 15 0 23460 11m 5260 S 0.5 2.9 0:00.07 php5.cgi
6006 otfu 15 0 20888 9540 4996 R 0.5 2.3 0:00.03 php5.cgi
6015 otfu 15 0 20048 7920 4464 R 0.5 1.9 0:00.03 php5.cgi
6016 otfu 15 0 20816 7872 4440 S 0.5 1.9 0:00.03 php5.cgi
5995 otfu 15 0 21652 9.8m 4996 S 0.4 2.4 0:00.05 php5.cgi
6012 otfu 17 0 19532 7168 4212 R 0.4 1.7 0:00.02 php5.cgi
6017 otfu 16 0 19136 6728 4124 R 0.4 1.6 0:00.02 php5.cgi
6018 otfu 16 0 19532 7164 4212 S 0.4 1.7 0:00.02 php5.cgi
6019 otfu 16 0 19532 7116 4176 R 0.4 1.7 0:00.02 php5.cgi
6024 otfu 16 0 18212 3968 2932 R 0.2 0.9 0:00.01 php5.cgi
2664 otfu 16 0 0 0 0 Z 0.0 0.0 0:00.12 php5.cgi <defunct>
4258 otfu 15 0 0 0 0 Z 0.0 0.0 0:00.10 php5.cgi <defunct>
4796 otfu 15 0 2132 1032 844 R 0.0 0.2 0:00.03 top
4936 otfu 15 0 0 0 0 Z 0.0 0.0 0:00.11 php5.cgi <defunct>
5984 otfu 15 0 22708 11m 5252 R 0.0 2.7 0:00.05 php5.cgi
6026 otfu 16 0 16020 1560 1348 R 0.0 0.4 0:00.00 php5.cgi
30894 otfu 15 0 6276 1300 920 S 0.0 0.3 0:00.01 sshd
30898 otfu 15 0 2624 1400 1128 S 0.0 0.3 0:00.00 bash
32192 otfu 15 0 3308 1196 792 S 0.0 0.3 0:00.00 sftp-server


mysqladmin command:

http://otserv.com.br/stats2.txt


Any ideia?
Thank you

eva2000
Sat 22nd Sep '07, 8:59am
You're basically swapping to disk - using more memory than your have.. your mysql settings aren't optimal which can cause this as well

post the contents of your /etc/my.cnf file minus any passwords and i will suggest a more optimal my.cnf for you. If you don't have root server access, then the problem lies in your web host's configuration for mysql settings and they will need to be the ones to edit and optimise their mysql settings in /etc/my.cnf.

If they are unable to help or don't know how to, then i suggest you move to a better web host :)