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

0

如果我没记错Opened_files的话,类似于自上次状态刷新以来创建的文件描述符的计数器。

在这里,您当前打开的文件数是 618。您可以使用lsof.

于 2013-06-05T16:58:16.597 回答