0

Opened_files私が持っている場合、私がとても大きい理由は何table_open_cache=200000 and max_connections = 20000ですか?

    mysql> SHOW STATUS LIKE 'open%';
    +--------------------------+---------+
    | Variable_name            | Value   |
    +--------------------------+---------+
    | Open_files               | 618     |
    | Open_streams             | 0       |
    | Open_table_definitions   | 668     |
    | Open_tables              | 1003    |
    | Opened_files             | 2721799 |
    | Opened_table_definitions | 0       |
    | Opened_tables            | 0       |
    +--------------------------+---------+

cat /proc/sys/fs/file-max
1048576

limit.conf
mysql soft nofile 40960
mysql hard nofile 90240

mysqld soft nofile 40960
mysqld hard nofile 90240
4

1 に答える 1