PDA

View Full Version : Optimization request (IIS)


Heavier
Fri 25th Jan '08, 11:21pm
Hi, I recently moved to a new server at a new data centre, and although it's working faster than it was, it's still slower than it could be. Thanks.

1. Dedicated (residing at giga-hosting in Germany)

2. Specs:
2x Intel Xeon 2.8Ghz
4GB Ram (NB: 2003 Web Edition can only recognise 2GB of it)
2x200GB non-raid.
Windows 2003 Web Edition
IIS 6
PHP 5.25
MySQL 5.0.45-community NT

3. vBulletin 3.7.0 Beta 4

4. I use MySQL5, and yes.

5. MySQL was installed from an msi, as a server machine with UTF-8

6. ??? / Most users ever online was 1,507, 01-03-2008 at 01:00 PM.

7. my.ini:
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.
#
# On Windows you should keep this file in the installation directory
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
# make sure the server reads the config file use the startup option
# "--defaults-file".
#
# To run run the server from the command line, execute this in a
# command line shell, e.g.
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# To install the server as a Windows service manually, execute this in a
# command line shell, e.g.
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# And then execute this in a command line shell to start the server, e.g.
# net start MySQLXY
#
#
# Guildlines for editing this file
# ----------------------------------------------------------------------
#
# In this file, you can use all long options that the program supports.
# If you want to know the options a program supports, start the program
# with the "--help" option.
#
# More detailed information about the individual options can also be
# found in the manual.
#
#
# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[client]

port=3306

[mysql]

default-character-set=utf8


# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
[mysqld]

# The TCP/IP Port the MySQL Server will listen on
port=3306


#Path to installation directory. All paths are usually resolved relative to this.
basedir="C:/Program Files/MySQL/MySQL Server 5.0/"

#Path to the database root
datadir="C:/Program Files/MySQL/MySQL Server 5.0/Data/"

# The default character set that will be used when a new schema or table is
# created and no character set is defined
default-character-set=utf8

# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_ SUBSTITUTION"

# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=800

# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=128M

# The number of open tables for all threads. Increasing this value
# increases the number of file descriptors that mysqld requires.
# Therefore you have to make sure to set the amount of open files
# allowed to at least 4096 in the variable "open-files-limit" in
# section [mysqld_safe]
table_cache=1520

# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=30M


# How many threads we should keep in a cache for reuse. When a client
# disconnects, the client's threads are put in the cache if there aren't
# more than thread_cache_size threads from before. This greatly reduces
# the amount of thread creations needed if you have a lot of new
# connections. (Normally this doesn't give a notable performance
# improvement if you have a good thread implementation.)
thread_cache_size=38

#*** MyISAM Specific options

# The maximum size of the temporary file MySQL is allowed to use while
# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
# If the file-size would be bigger than this, the index will be created
# through the key cache (which is slower).
myisam_max_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_max_extra_sort_file_size=100G

# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_sort_buffer_size=30M

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.
# Do not set it larger than 30% of your available memory, as some memory
# is also required by the OS to cache rows. Even if you're not using
# MyISAM tables, you should still set it to 8-64M as it will also be
# used for internal temporary disk tables.
key_buffer_size=129M

# Size of the buffer used for doing full table scans of MyISAM tables.
# Allocated per thread, if a full scan is needed.
read_buffer_size=64K
read_rnd_buffer_size=256K

# This buffer is allocated when MySQL needs to rebuild the index in
# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
# into an empty table. It is allocated per thread so be careful with
# large settings.
sort_buffer_size=256K


#*** INNODB Specific options ***


# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb

# Additional memory pool that is used by InnoDB to store metadata
# information. If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS. As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=6M

# If set to 1, InnoDB will flush (fsync) the transaction logs to the
# disk at each commit, which offers full ACID behavior. If you are
# willing to compromise this safety, and you are running small
# transactions, you may set this to 0 or 2 to reduce disk I/O to the
# logs. Value 0 means that the log is only written to the log file and
# the log file flushed to disk approximately once per second. Value 2
# means the log is written to the log file at each commit, but the log
# file is only flushed to disk approximately once per second.
innodb_flush_log_at_trx_commit=1

# The size of the buffer InnoDB uses for buffering log data. As soon as
# it is full, InnoDB will have to flush it to disk. As it is flushed
# once per second anyway, it does not make sense to have it very large
# (even with long transactions).
innodb_log_buffer_size=3M

# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system. Note that on 32bit systems you
# might be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=250M

# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=50M

# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=8
#Max packetlength to send/receive from to server.
max_allowed_packet=128M


8. mysqladmin -u root -p var ext stat ver:

+---------------------------------+---------------------------------------------
-------------------+
| Variable_name | Value
|
+---------------------------------+---------------------------------------------
-------------------+
| auto_increment_increment | 1
|
| auto_increment_offset | 1
|
| automatic_sp_privileges | ON
|
| back_log | 50
|
| basedir | C:\Program Files\MySQL\MySQL Server 5.0\
|
| binlog_cache_size | 32768
|
| bulk_insert_buffer_size | 8388608
|
| character_set_client | utf8
|
| character_set_connection | utf8
|
| character_set_database | utf8
|
| character_set_filesystem | binary
|
| character_set_results | utf8
|
| character_set_server | utf8
|
| character_set_system | utf8
|
| character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.0\shar
e\charsets\ |
| collation_connection | utf8_general_ci
|
| collation_database | utf8_general_ci
|
| collation_server | utf8_general_ci
|
| completion_type | 0
|
| concurrent_insert | 1
|
| connect_timeout | 5
|
| datadir | C:\Program Files\MySQL\MySQL Server 5.0\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 | 1800
|
| 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 | YES
|
| have_bdb | NO
|
| have_blackhole_engine | YES
|
| have_compress | YES
|
| have_crypt | NO
|
| have_csv | NO
|
| have_dynamic_loading | YES
|
| have_example_engine | NO
|
| have_federated_engine | YES
|
| have_geometry | YES
|
| have_innodb | YES
|
| have_isam | NO
|
| have_merge_engine | YES
|
| have_ndbcluster | NO
|
| have_openssl | DISABLED
|
| have_ssl | DISABLED
|
| have_query_cache | YES
|
| have_raid | NO
|
| have_rtree_keys | YES
|
| have_symlink | YES
|
| hostname | rbi0119
|
| init_connect |
|
| init_file |
|
| init_slave |
|
| innodb_additional_mem_pool_size | 6291456
|
| innodb_autoextend_increment | 8
|
| innodb_buffer_pool_awe_mem_mb | 0
|
| innodb_buffer_pool_size | 262144000
|
| 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 | 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 | 3145728
|
| innodb_log_file_size | 52428800
|
| 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_rollback_on_timeout | OFF
|
| 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 | 131072
|
| key_buffer_size | 135266304
|
| key_cache_age_threshold | 300
|
| key_cache_block_size | 1024
|
| key_cache_division_limit | 100
|
| language | C:\Program Files\MySQL\MySQL Server 5.0\shar
e\english\ |
| large_files_support | ON
|
| large_page_size | 0
|
| large_pages | OFF
|
| lc_time_names | en_US
|
| license | GPL
|
| local_infile | ON
|
| log | OFF
|
| log_bin | OFF
|
| log_bin_trust_function_creators | OFF
|
| log_error | C:\Program Files\MySQL\MySQL Server 5.0\Data
\rbi0119.err |
| log_queries_not_using_indexes | OFF
|
| log_slave_updates | OFF
|
| log_slow_queries | OFF
|
| log_warnings | 1
|
| long_query_time | 10
|
| low_priority_updates | OFF
|
| lower_case_file_system | ON
|
| lower_case_table_names | 1
|
| max_allowed_packet | 134216704
|
| max_binlog_cache_size | 4294967295
|
| max_binlog_size | 1073741824
|
| max_connect_errors | 10
|
| max_connections | 800
|
| 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_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 | 0
|
| max_write_lock_count | 4294967295
|
| multi_range_count | 256
|
| myisam_data_pointer_size | 6
|
| myisam_max_sort_file_size | 107374182400
|
| myisam_recover_options | OFF
|
| myisam_repair_threads | 1
|
| myisam_sort_buffer_size | 31457280
|
| myisam_stats_method | nulls_unequal
|
| named_pipe | OFF
|
| net_buffer_length | 16384
|
| net_read_timeout | 30
|
| net_retry_count | 10
|
| net_write_timeout | 60
|
| new | OFF
|
| old_passwords | OFF
|
| open_files_limit | 2048
|
| optimizer_prune_level | 1
|
| optimizer_search_depth | 62
|
| pid_file | C:\Program Files\MySQL\MySQL Server 5.0\Data
\rbi0119.pid |
| port | 3306
|
| preload_buffer_size | 32768
|
| profiling | OFF
|
| profiling_history_size | 15
|
| protocol_version | 10
|
| query_alloc_block_size | 8192
|
| query_cache_limit | 1048576
|
| query_cache_min_res_unit | 4096
|
| query_cache_size | 134217728
|
| query_cache_type | ON
|
| query_cache_wlock_invalidate | OFF
|
| query_prealloc_size | 8192
|
| range_alloc_block_size | 2048
|
| read_buffer_size | 61440
|
| read_only | OFF
|
| read_rnd_buffer_size | 258048
|
| relay_log_purge | ON
|
| relay_log_space_limit | 0
|
| rpl_recovery_rank | 0
|
| secure_auth | OFF
|
| secure_file_priv |
|
| shared_memory | OFF
|
| shared_memory_base_name | MYSQL
|
| server_id | 0
|
| skip_external_locking | ON
|
| skip_networking | OFF
|
| skip_show_database | OFF
|
| slave_compressed_protocol | OFF
|
| slave_load_tmpdir | C:\WINDOWS\TEMP\
|
| slave_net_timeout | 3600
|
| slave_skip_errors | OFF
|
| slave_transaction_retries | 10
|
| slow_launch_time | 2
|
| sort_buffer_size | 262136
|
| sql_big_selects | ON
|
| sql_mode | STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_E
NGINE_SUBSTITUTION |
| sql_notes | ON
|
| sql_warnings | OFF
|
| ssl_ca |
|
| ssl_capath |
|
| ssl_cert |
|
| ssl_cipher |
|
| ssl_key |
|
| storage_engine | InnoDB
|
| sync_binlog | 0
|
| sync_frm | ON
|
| system_time_zone | W. Europe Standard Time
|
| table_cache | 619
|
| table_lock_wait_timeout | 50
|
| table_type | InnoDB
|
| thread_cache_size | 38
|
| thread_stack | 196608
|
| time_format | %H:%i:%s
|
| time_zone | SYSTEM
|
| timed_mutexes | OFF
|
| tmp_table_size | 31457280
|
| tmpdir | C:\WINDOWS\TEMP\
|
| transaction_alloc_block_size | 8192
|
| transaction_prealloc_size | 4096
|
| tx_isolation | REPEATABLE-READ
|
| updatable_views_with_limit | YES
|
| version | 5.0.45-community-nt
|
| version_comment | MySQL Community Edition (GPL)
|
| version_compile_machine | ia32
|
| version_compile_os | Win32
|
| wait_timeout | 28800
|
+---------------------------------+---------------------------------------------
-------------------+
+-----------------------------------+------------+
| Variable_name | Value |
+-----------------------------------+------------+
| Aborted_clients | 0 |
| Aborted_connects | 117 |
| Binlog_cache_disk_use | 0 |
| Binlog_cache_use | 0 |
| Bytes_received | 1160627131 |
| Bytes_sent | 1715390812 |
| Com_admin_commands | 920 |
| Com_alter_db | 0 |
| Com_alter_table | 33 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_call_procedure | 0 |
| Com_change_db | 363193 |
| 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 | 29 |
| Com_create_user | 0 |
| Com_dealloc_sql | 0 |
| Com_delete | 5023 |
| Com_delete_multi | 2 |
| Com_do | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 27 |
| 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 | 142043 |
| Com_insert_select | 27 |
| 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 | 12594 |
| 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 | 962347 |
| Com_set_option | 363199 |
| 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 | 280 |
| Com_show_grants | 0 |
| Com_show_innodb_status | 159 |
| Com_show_keys | 6 |
| 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 | 163 |
| Com_show_storage_engines | 0 |
| Com_show_tables | 0 |
| Com_show_triggers | 0 |
| Com_show_variables | 8 |
| 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 | 55 |
| Com_unlock_tables | 0 |
| Com_update | 213184 |
| Com_update_multi | 27 |
| 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 | 363318 |
| Created_tmp_disk_tables | 8547 |
| Created_tmp_files | 542 |
| Created_tmp_tables | 33232 |
| Delayed_errors | 0 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Flush_commands | 1 |
| Handler_commit | 195497 |
| Handler_delete | 19848 |
| Handler_discover | 0 |
| Handler_prepare | 0 |
| Handler_read_first | 166638 |
| Handler_read_key | 21234562 |
| Handler_read_next | 20494477 |
| Handler_read_prev | 654389 |
| Handler_read_rnd | 6988513 |
| Handler_read_rnd_next | 255447347 |
| Handler_rollback | 0 |
| Handler_savepoint | 0 |
| Handler_savepoint_rollback | 0 |
| Handler_update | 383416 |
| Handler_write | 5840216 |
| Innodb_buffer_pool_pages_data | 15742 |
| Innodb_buffer_pool_pages_dirty | 17 |
| Innodb_buffer_pool_pages_flushed | 176422 |
| Innodb_buffer_pool_pages_free | 0 |
| Innodb_buffer_pool_pages_latched | 0 |
| Innodb_buffer_pool_pages_misc | 258 |
| Innodb_buffer_pool_pages_total | 16000 |
| Innodb_buffer_pool_read_ahead_rnd | 17 |
| Innodb_buffer_pool_read_ahead_seq | 80 |
| Innodb_buffer_pool_read_requests | 86881511 |
| Innodb_buffer_pool_reads | 6416 |
| Innodb_buffer_pool_wait_free | 0 |
| Innodb_buffer_pool_write_requests | 2228161 |
| Innodb_data_fsyncs | 215700 |
| Innodb_data_pending_fsyncs | 0 |
| Innodb_data_pending_reads | 0 |
| Innodb_data_pending_writes | 0 |
| Innodb_data_read | 188403712 |
| Innodb_data_reads | 11376 |
| Innodb_data_writes | 380195 |
| Innodb_data_written | 1867842560 |
| Innodb_dblwr_pages_written | 176422 |
| Innodb_dblwr_writes | 7915 |
| Innodb_log_waits | 0 |
| Innodb_log_write_requests | 714061 |
| Innodb_log_writes | 190913 |
| Innodb_os_log_fsyncs | 196173 |
| Innodb_os_log_pending_fsyncs | 0 |
| Innodb_os_log_pending_writes | 0 |
| Innodb_os_log_written | 379409408 |
| Innodb_page_size | 16384 |
| Innodb_pages_created | 6463 |
| Innodb_pages_read | 11238 |
| Innodb_pages_written | 176422 |
| Innodb_row_lock_current_waits | 0 |
| Innodb_row_lock_time | 281 |
| Innodb_row_lock_time_avg | 56 |
| Innodb_row_lock_time_max | 171 |
| Innodb_row_lock_waits | 5 |
| Innodb_rows_deleted | 15606 |
| Innodb_rows_inserted | 262597 |
| Innodb_rows_read | 136416657 |
| Innodb_rows_updated | 81232 |
| Key_blocks_not_flushed | 0 |
| Key_blocks_unused | 114029 |
| Key_blocks_used | 2481 |
| Key_read_requests | 19084939 |
| Key_reads | 51759 |
| Key_write_requests | 14539 |
| Key_writes | 9133 |
| Last_query_cost | 0.000000 |
| Max_used_connections | 132 |
| Not_flushed_delayed_rows | 0 |
| Open_files | 43 |
| Open_streams | 0 |
| Open_tables | 215 |
| Opened_tables | 6529 |
| Prepared_stmt_count | 0 |
| Qcache_free_blocks | 7048 |
| Qcache_free_memory | 88528072 |
| Qcache_hits | 1638344 |
| Qcache_inserts | 952365 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 10431 |
| Qcache_queries_in_cache | 13549 |
| Qcache_total_blocks | 34826 |
| Questions | 4063943 |
| Rpl_status | NULL |
| Select_full_join | 7 |
| Select_full_range_join | 0 |
| Select_range | 186842 |
| Select_range_check | 0 |
| Select_scan | 109642 |
| Slave_open_temp_tables | 0 |
| Slave_retried_transactions | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 2077 |
| Slow_queries | 233 |
| Sort_merge_passes | 538 |
| Sort_range | 207789 |
| Sort_rows | 13152705 |
| Sort_scan | 28533 |
| 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 | 2881116 |
| Table_locks_waited | 236 |
| Tc_log_max_pages_used | 0 |
| Tc_log_page_size | 0 |
| Tc_log_page_waits | 0 |
| Threads_cached | 35 |
| Threads_connected | 4 |
| Threads_created | 2426 |
| Threads_running | 1 |
| Uptime | 48353 |
| Uptime_since_flush_status | 48353 |
+-----------------------------------+------------+
Uptime: 48443 Threads: 6 Questions: 4071734 Slow queries: 233 Opens: 6529 F
lush tables: 1 Open tables: 215 Queries per second avg: 84.052
mysqladmin Ver 8.41 Distrib 5.0.45, for Win32 on ia32
Copyright (C) 2000-2006 MySQL 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.45-community-nt
Protocol version 10
Connection localhost via TCP/IP
TCP port 3306
Uptime: 13 hours 27 min 23 sec

Threads: 6 Questions: 4071734 Slow queries: 233 Opens: 6529 Flush tables: 1
Open tables: 215 Queries per second avg: 84.052
9. vBulletin is the only thing on the server. The secondary hard disk contains only backup sql files.

10. Average is 4-500, max was 1500 but the max average over the space of more than a day was around 7-800. Cookie session timeout is 900

11. http://www.akiba-online.com/info.php

12. n/a

13. n/a and no

14. n/a

AWS
Sat 26th Jan '08, 1:04am
All your php modules are loading twice for some reason. I've never seen that before. You should troubleshoot that first.

eva2000
Sun 27th Jan '08, 9:53am
what AWS said.. figure that out first :)

also do you have hacks/plugins installed.. try disabling them all for a few days and slowly re-enable one at a time over a few days and see

right now i can hardly load your phpinfo page.. could be your server is under powered to handle the web end load ?

Heavier
Sun 27th Jan '08, 10:19am
I don't understand how all my php could be loading twice...

I don't even know how to format a query into google for that.

AWS
Sun 27th Jan '08, 11:42am
One of 2 things is happening. There are 2 copies of php.ini and each is pointing to a different extension dir or an older copy is PHP is still running on the server and is being loaded by the website. In IIS Manager check the script mappings for the website.

Also see http://www.vbulletin.com/forum/showthread.php?t=256803 there is a problem with mysql 5.0.45 and Windows.

Heavier
Sat 8th Mar '08, 1:46pm
Even uninstalling and re-installing PHP doesn't help.

I have another (less powerful) server running IIS and PHP, and the phpinfo for that is fine.

Downgrading my MySQL didn't help either.

This is really killing my forum. It's crawling thanks to increased traffic.

AWS
Sat 8th Mar '08, 2:20pm
Search the registry for .php. If you installed php with the installer you will have several of these keys. The php uninstaller doesn't remove these keys so if you uninstalled and then used the installer to reinstall you'll get duplicates of each.

Heavier
Sun 9th Mar '08, 9:16am
Nah, the only php entry I have is php_auto_file. I installed php manually at least twice, removing it entirely before I tried again. I still don't get it.

My info.php is showing lots of data related specifically to my vBulletin table as well, so maybe the problem is with my vBulletin table itself.

Heavier
Sat 15th Mar '08, 8:10am
This really has become my primary issue now. It's worth noting that php has had this problem even on my old server (http://www.vbulletin.com/forum/showthread.php?t=228290). I never had to do anything about it, because my hardware could cope with every php script executing twice. The only thing they had in common was the vBulletin database itself, so my guess is it is somehow interacting.

I've posted the issue here: http://www.vbulletin.com/forum/showthread.php?t=263451

As far as optimizing my server, my php issues are my primary concern at the moment. Particularly since the only cure seems to be removing the vBulletin database, and I really don't want to do that.

Heavier
Sun 6th Apr '08, 9:49am
Just in case anyone else has this issue, I have resolved it. I think it was because I had a different API in my PHP than the MySQL version I was using.