Opened_files非常大

时间:2013-04-04 12:22:30

标签: mysql

如果我有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

1 个答案:

答案 0 :(得分:0)

如果我没记错的话,Opened_files就像上次状态刷新后创建的文件描述符的计数器一样。

此处,您当前打开的文件数为618.您可以使用lsof确认。

相关问题