mysqld进程能使用的最大文件描述符数量。
在没有配置的open_files_limit的情况下,会获取下面公式的最大值。
1) 10 + maxconnections + (tableopen_cache * 2)
2) max_connections * 5
3) operating system limit if positive
4) if operating system limit is Infinity:
open_files_limit value specified at startup, 5000 if none
#配置了open_files_limit的情况下,第三个值的大小会被忽略
1)
select @@max_connections + @@extra_max_connections + 10 + @@table_open_cache*2 = open_file_limit
2)
select (@@max_connections+@@extra_max_connections)*5 = open_file_limit
3)
ulimit -n = open_file_limit
4)
5000 = open_file_limit