我们有一个专用的主服务器,内存为32GB,另外两个从属服务器连接20个CPU,由于内存问题,我们一直需要重启mysql进程。
当我运行SHOW FULL PROCESSLIST(目前是晚上没人在线)
我明白了:
但是当我去服务器并启动TOP命令时,我有 85 mysqld进程:
这是正常的吗?
这是我们的my.cnf文件:
skip-external-locking
skip-name-resolve = 1
innodb_file_per_table = 1
innodb_flush_method=O_DIRECT
key_buffer_size = 16M
max_allowed_packet = 128M
thread_stack = 192K
thread_cache_size = 64
table_open_cache = 4000
#open_file_limit = 10000
join_buffer_size = 1024k
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
max_connections = 2500
wait_timeout = 150
interactive_timeout = 30
# 80% of available memory
innodb_buffer_pool_size = 26G
# The preferred value size for the log_file_size is 25% of the innodb_buffer_pool_size.
innodb_log_file_size = 1G
#innodb_log_buffer_size = 512M
innodb_buffer_pool_instances = 24
tmp_table_size = 256M
max_heap_table_size = 256M
innodb_flush_log_at_trx_commit = 2
query_cache_limit = 128M
query_cache_size = 100M
query_cache_type = 0