Aborted connection & slow_queries
Posted: 2008-12-11 12:52
Hallo RootForum-Gemeinde,
mir ist im mysqld.err Log folgendes ins Auge gefallen:
Phpmyadmin sagt mir ausserdem, dass bei einer Laufzeit von 1h 45min des MySql-Servers:
Verbindungen:
Lt. Mysql FAQ soll das auf einen fehlconfiguration des Servers hinweisen, bzw. fehlerhafte timeouts.
Hier mal meine my.cnf
Kann mir wer einen Tipp geben, wie ich die connection timeouts beheben kann? Und was ich gegen die SLOW-Queries machen kann?
Vielen Dank im voraus
t-eddie
mir ist im mysqld.err Log folgendes ins Auge gefallen:
Code: Select all
081211 11:50:19 [Warning] Aborted connection 1257 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 11:52:39 [Warning] Aborted connection 1312 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 11:52:39 [Warning] Aborted connection 1313 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 11:56:04 [Warning] Aborted connection 1389 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 12:00:05 [Warning] Aborted connection 1432 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 12:00:05 [Warning] Aborted connection 1433 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 12:00:05 [Warning] Aborted connection 1434 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
081211 12:00:19 [Warning] Aborted connection 1431 to db: 'syscp' user: 'syscp' host: 'localhost' (Got timeout reading communication packets)
Verbindungen:
Code: Select all
Fehlgeschlagen 1 0,58 0,06%
Abgebrochen 146 84,88 9,41%
Insgesamt 1.552 902,33 100,00%
Code: Select all
Slow_queries 9.655
Select_full_join 706
Select_range_check 808
Hier mal meine my.cnf
Code: Select all
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
character-sets-dir = /usr/share/mysql/charsets
default-character-set = latin1
[mysql]
no-auto-rehash # faster start of mysql but no tab completition
[mysqldump]
quick
quote-names
max_allowed_packet = 32M
[isamchk]
key_buffer = 4M
[myisamchk]
key_buffer = 12M
[mysqld_safe]
err_log = /var/log/mysql/mysql.err
[mysqld]
character_sets_dir = /usr/share/mysql/charsets
character_set_server = utf8
default_character_set = utf8
user = mysql
port = 3306
bind_address = 127.0.0.1
bind_address = *MYIPADRESS*
socket = /var/run/mysqld/mysqld.sock
pid_file = /var/run/mysqld/mysqld.pid
log_error = /var/log/mysql/mysqld.err
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /var/tmp
slave_load_tmpdir = /var/tmp
language = /usr/share/mysql/english
log_bin = /var/lib/mysql/mysql-bin
relay-log = /var/lib/mysql/relay.log
relay-log-index = /var/lib/mysql/relay.index
master-info-file = /var/lib/mysql/master.info
relay-log-info-file = /var/lib/mysql/relay.info
#master_host = <hostname>
#master_user = <username>
#master_password = <password>
#master_port = 3306
#auto_increment_increment = 10
#auto_increment_offset = 1
server_id = 1
back_log = 50
sync_binlog = 0
binlog_cache_size = 1M
max_binlog_size = 100M
expire_logs_days = 7
slave_compressed_protocol = 1
lower_case_table_names = 1
delay_key_write = ALL
safe_user_create = 1
myisam_repair_threads = 1
myisam_recover = FORCE,BACKUP
skip_locking
skip_name_resolve
skip_external_locking
#skip_show_database
key_buffer_size = 64M
join_buffer_size = 3M
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 16M
max_allowed_packet = 40M
max_heap_table_size = 196M
tmp_table_size = 196M
table_cache = 15000
query_cache_type = 4800
query_cache_size = 24M
query_cache_limit = 4M
query_cache_min_res_unit = 512
thread_concurrency = 16
thread_cache_size = 16
max_connections = 60
wait_timeout = 45
connect_timeout = 25
open-files-limit = 8240
ft_max_word_len = 20
ft_min_word_len = 3
local_infile = 0
log_warnings = 2
long_query_time = 3
log_slow_queries = /var/log/mysql/slow-queries.log
log_queries_not_using_indexes
#log_slave_updates
#log_long_format
skip_innodb
innodb_thread_concurrency = 8
innodb_buffer_pool_size = 32M
innodb_additional_mem_pool_size = 16M
innodb_data_home_dir = /var/lib/mysql
innodb_log_arch_dir = /var/lib/mysql
innodb_log_group_home_dir = /var/lib/mysql
innodb_data_file_path = ibdata1:2000M;ibdata2:10M:autoextend
innodb_flush_method = O_DIRECT
innodb_log_file_size = 100M
innodb_log_buffer_size = 8M
innodb_log_files_in_group = 2
innodb_flush_log_at_trx_commit = 2
innodb_max_dirty_pages_pct = 90
innodb_lock_wait_timeout = 90
innodb_file_per_table
[mysqlhotcopy]
interactive_timeout
Vielen Dank im voraus
t-eddie