Errcode: 24 - Too many open files

简介:

先做个简单记录,后面有时间再编辑
应用报错

java.sql.SQLException: Out of resources when opening file '.MYD' (Errcode: 24 - Too many open files)

检查方法

mysql> show global variables like "%open%";
+----------------------------+----------+
| Variable_name              | Value    |
+----------------------------+----------+
| have_openssl               | DISABLED |
| innodb_open_files          | 3000     |
| open_files_limit           | 2000    |
| table_open_cache           | 2000     |
| table_open_cache_instances | 16       |
+----------------------------+----------+
5 rows in set (0.00 sec)

系统层面

df -h 
df -i
ulimit -n
cat /etc/security/limits.conf

参考

https://forums.cpanel.net/threads/out-of-resources-when-opening-file-tmp-sql_26b7_0-myi-errcode-24.419342/

相关文章
|
2月前
|
Python
OSError: cannot open resource
【9月更文挑战第20天】
130 3
|
Linux API PHP
php遇到failed to open stream: Permission denied
php遇到failed to open stream: Permission denied
746 0
成功解决fp = builtins.open(filename, "rb") OSError: [Errno 22] Invalid argument: 'F:\\File_Pyt
成功解决fp = builtins.open(filename, "rb") OSError: [Errno 22] Invalid argument: 'F:\\File_Pyt
|
Java Linux
too many open files
If you encounter the file descriptor leaks problem, it might be helpful to you.
2531 0