Linux: Too many open files in Ubuntu

Support Wissensdatenbank

Du bist hier:

Linux: Too many open files in Ubuntu

Error messages like these in the log files of MySQL or Apache:

Error: SQLSTATE[HY000]: General error: 23 Out of resources when opening file ‘/tmp/#sql_751_0.MYD’ (Errcode: 24 – Too many open files)

Solution:

Customize /etc/security/limits.conf:
root soft nofile 800000
root hard nofile 1024000

/etc/mysql/my.cnf:
open_files_limit = 1024000

then restart server

War dieser Artikel hilfreich?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Brauchst du Hilfe?
Related Post