Figuring out mysql max connection limit -
having performance issues @ peak times mysql go unresponsive. trying figure out if using right value max connections. server has 64gb of ram.
+------------------------------+------------+ | variable_name | value | +------------------------------+------------+ | bulk_insert_buffer_size | 8388608 | | innodb_buffer_pool_instances | 1 | | innodb_buffer_pool_size | 134217728 | | innodb_change_buffering | | | innodb_log_buffer_size | 8388608 | | join_buffer_size | 67108864 | | key_buffer_size | 2147483648 | | myisam_sort_buffer_size | 8388608 | | net_buffer_length | 16384 | | preload_buffer_size | 32768 | | read_buffer_size | 67108864 | | read_rnd_buffer_size | 2097152 | | sort_buffer_size | 2097152 | | sql_buffer_result | off | +------------------------------+------------+ lsof | wc -l 124101 lsof -a -p mysqldpid | wc -l 518 mysql> show status '%connection%'; +----------------------+----------+ | variable_name | value | +----------------------+----------+ | connections | 25019772 | | max_used_connections | 451 | +----------------------+----------+ currently connection limit set 350. other variables need calculate correct connection limit?
look status vatiables. connections , max_used_connections how many connections server has used.
show status '%connection%'; variable_name value connection_errors_accept 0 connection_errors_internal 0 connection_errors_max_connections 0 connection_errors_peer_address 0 connection_errors_select 0 connection_errors_tcpwrap 0 connections 13 max_used_connections 7
Comments
Post a Comment