I have an XUI panel, usually everything is normal, but when series are deleted or added, the CPU increases exponentially and the system crashes. I made some modifications to the DB but it continues to happen, it becomes a bottleneck and it throws everything away. This happens when there are more than 12,000 connections taken. Is there any way to optimize it? I share my MySQL configuration file. In addition, many connections remain in sleep mode. I don't know if this has happened to anyone.
Code:
# XUI
[client]
port = 3306
[mysqld_safe]
nice = 0
[mysqld]
user = mysql
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
skip-name-resolve
bind-address = *
key_buffer_size = 128M
myisam_sort_buffer_size = 4M
max_allowed_packet = 256M
myisam-recover-options = BACKUP
max_length_for_sort_data = 8192
query_cache_limit = 0
query_cache_size = 0
query_cache_type = 0
expire_logs_days = 10
max_binlog_size = 100M
max_connections = 13000
back_log = 10000
open_files_limit = 262144
innodb_open_files = 60000
max_connect_errors = 1000000
table_open_cache = 14000
table_definition_cache = 14000
tmp_table_size = 256M
max_heap_table_size = 256M
innodb_buffer_pool_size = 10G
innodb_buffer_pool_instances = 8
innodb_read_io_threads = 16
innodb_write_io_threads = 16
innodb_thread_concurrency = 0
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
performance_schema = 0
innodb-file-per-table = 1
innodb_io_capacity = 20000
innodb_table_locks = 0
innodb_lock_wait_timeout = 50
sql_mode = "NO_ENGINE_SUBSTITUTION"
[mariadb]
thread_cache_size = 3072
thread_handling = pool-of-threads
thread_pool_size = 56
thread_pool_idle_timeout = 20
thread_pool_max_threads = 2048
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
[isamchk]
key_buffer_size = 16M
Last edited by a moderator:





