- Хроники
- Fafurion
- Исходники
- Присутствуют
- Сборка
- L2J_Mobius
Подскажите что может быть, все было норм. А сейчас какая то ерунда сервер работает все ок но примерно через 12 часов начинает бить ошибку - [12/03 22:56:47] DatabaseFactory: Cound not get a connection. java.sql.SQLSyntaxErrorException: No connection available within the specified time (option 'connectTimeout': 30,000 ms) пропадает коннект с базой, после делаю рестарт сервера и все ок опять работает. Делал рестарт openserver увеличил коннекты в mysql не помогло что это может быть подскажите.
вот мой my.ini
вот мой my.ini
[client]
port = %mysqlport%
character_sets_dir = "%dprogdir%\\modules\\database\\%mysql_driver%\\share\\charsets"
[mysql]
no-auto-rehash
no-beep
character_sets_dir = "%dprogdir%\\modules\\database\\%mysql_driver%\\share\\charsets"
[mysqld]
# Required Settings
basedir = "%dprogdir%\\modules\\database\\%mysql_driver%"
bind-address = %ip%
character_sets_dir = "%dprogdir%\\modules\\database\\%mysql_driver%\\share\\charsets"
character_set_server = utf8mb4
collation_server = utf8mb4_unicode_ci
datadir = "%dprogdir%\\userdata\\%mysql_driver%"
default_storage_engine = InnoDB
explicit_defaults_for_timestamp = 1
ft_min_word_len = 3
local_infile = 0
lower_case_table_names = 1
max_allowed_packet = 256M
pid_file = "%dprogdir%\\userdata\\temp\\mysql.pid"
port = %mysqlport%
secure-file-priv = "%dprogdir%\\userdata\\temp\\upload"
#skip_name_resolve = 1
skip-ssl
tmpdir = "%dprogdir%\\userdata\\temp"
# Buffer Settings
bulk_insert_buffer_size = 8M
join_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
sort_buffer_size = 2M
# Cache Settings
query_cache_limit = 256K
query_cache_size = 32M
query_cache_type = 1
# Connection Settings
max_connections = 9999
max_connect_errors = 32
back_log = 128
thread_cache_size = 8
interactive_timeout = 180
wait_timeout = 180
# InnoDB Settings
innodb_adaptive_hash_index = 0
innodb_buffer_pool_instances = 1
innodb_buffer_pool_size = 128M
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = "%dprogdir%\\userdata\\%mysql_driver%"
innodb_file_per_table = 1
#innodb_force_recovery = 1
innodb_log_file_size = 64M
innodb_read_io_threads = 8
#innodb_thread_concurrency = 4
innodb_write_io_threads = 8
# Logging
%log%general_log = 1
%log%general_log_file = "%dprogdir%\\userdata\\logs\\%mysql_driver%_queries.log"
log_error = "%dprogdir%\\userdata\\logs\\%mysql_driver%_error.log"
skip-log-bin
#log_queries_not_using_indexes = 1
#long_query_time = 5
#slow_query_log = 1
#slow_query_log_file = "%dprogdir%\\userdata\\logs\\%mysql_driver%_slow.log"
# MyISAM Settings
key_buffer_size = 32M
myisam_max_sort_file_size = 256M
myisam_recover_options = backup,force
# Table Settings
table_definition_cache = 10000
table_open_cache = 10000
open_files_limit = 60000
max_heap_table_size = 128M
tmp_table_size = 128M
[mysqldump]
quick
quote_names
max_allowed_packet = 16M
[myisamchk]
key_buffer_size = 64M
sort_buffer_size = 64M
read_buffer = 2M
write_buffer = 2M
[mysqld_safe]
open_files_limit = 60000
port = %mysqlport%
character_sets_dir = "%dprogdir%\\modules\\database\\%mysql_driver%\\share\\charsets"
[mysql]
no-auto-rehash
no-beep
character_sets_dir = "%dprogdir%\\modules\\database\\%mysql_driver%\\share\\charsets"
[mysqld]
# Required Settings
basedir = "%dprogdir%\\modules\\database\\%mysql_driver%"
bind-address = %ip%
character_sets_dir = "%dprogdir%\\modules\\database\\%mysql_driver%\\share\\charsets"
character_set_server = utf8mb4
collation_server = utf8mb4_unicode_ci
datadir = "%dprogdir%\\userdata\\%mysql_driver%"
default_storage_engine = InnoDB
explicit_defaults_for_timestamp = 1
ft_min_word_len = 3
local_infile = 0
lower_case_table_names = 1
max_allowed_packet = 256M
pid_file = "%dprogdir%\\userdata\\temp\\mysql.pid"
port = %mysqlport%
secure-file-priv = "%dprogdir%\\userdata\\temp\\upload"
#skip_name_resolve = 1
skip-ssl
tmpdir = "%dprogdir%\\userdata\\temp"
# Buffer Settings
bulk_insert_buffer_size = 8M
join_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
sort_buffer_size = 2M
# Cache Settings
query_cache_limit = 256K
query_cache_size = 32M
query_cache_type = 1
# Connection Settings
max_connections = 9999
max_connect_errors = 32
back_log = 128
thread_cache_size = 8
interactive_timeout = 180
wait_timeout = 180
# InnoDB Settings
innodb_adaptive_hash_index = 0
innodb_buffer_pool_instances = 1
innodb_buffer_pool_size = 128M
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = "%dprogdir%\\userdata\\%mysql_driver%"
innodb_file_per_table = 1
#innodb_force_recovery = 1
innodb_log_file_size = 64M
innodb_read_io_threads = 8
#innodb_thread_concurrency = 4
innodb_write_io_threads = 8
# Logging
%log%general_log = 1
%log%general_log_file = "%dprogdir%\\userdata\\logs\\%mysql_driver%_queries.log"
log_error = "%dprogdir%\\userdata\\logs\\%mysql_driver%_error.log"
skip-log-bin
#log_queries_not_using_indexes = 1
#long_query_time = 5
#slow_query_log = 1
#slow_query_log_file = "%dprogdir%\\userdata\\logs\\%mysql_driver%_slow.log"
# MyISAM Settings
key_buffer_size = 32M
myisam_max_sort_file_size = 256M
myisam_recover_options = backup,force
# Table Settings
table_definition_cache = 10000
table_open_cache = 10000
open_files_limit = 60000
max_heap_table_size = 128M
tmp_table_size = 128M
[mysqldump]
quick
quote_names
max_allowed_packet = 16M
[myisamchk]
key_buffer_size = 64M
sort_buffer_size = 64M
read_buffer = 2M
write_buffer = 2M
[mysqld_safe]
open_files_limit = 60000