要查看 mysql 開啟的 files 數,可用
(1) #ps aux | grep mysql 看 mysql PID
(2) 再利用 #lsof -p PID# | wc -l 來統計。
使用資料庫command查詢
mysql>show global status like 'open_%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| Open_files | 382 |
| Open_streams | 0 |
| Open_tables | 191 |
| Opened_tables | 876 |
+---------------+-------+
mysql> show global status like 'open_%';
+-------------------+----------+
| Variable_name | Value |
+-------------------+----------+
| have_openssl | DISABLED |
| innodb_open_files | 300 |
| open_files_limit | 15000 |
+-------------------+----------+
3 rows in set (0.00 sec)
至於如何修改...可以參考這篇:
http://dz.adj.idv.tw/thread-82903-1-1.html