Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

[ERROR] Error in accept: Too many open files

Mit manchen Versionen von MariaDB kann es dazu kommen, dass der Server nicht mehr auf sql-Anfragen reagiert.

service mysql status zeigt dann u.a.

mysql[413]: Error 23 (HY000) at line 1: Out of resources when opening file ‘./…’ (Errcode: 24 “Too many open files”)
[ERROR] Error in accept: Too many open files

Um die Limits von MariaDB/MySQL unter Debian Jessie zu setzen werden die folgenden Werte in /etc/security/limits.conf eingetragen:

mysql soft nofile 65535
mysql hard nofile 65535

mkdir -p /etc/systemd/system/mysql.service.d/
vi /etc/systemd/system/mysql.service.d/limits.conf

[Service]
LimitNOFILE=infinity

systemctl daemon-reload
service mysql restart

Um die Änderungen zu überprüfen:
cat /proc/$(cat /var/run/mysqld/mysqld.pid)/limits

No tags for this post.


This post first appeared on Florian @it – Mein Persönliches IT-Blog, please read the originial post: here

Share the post

[ERROR] Error in accept: Too many open files

×

Subscribe to Florian @it – Mein Persönliches It-blog

Get updates delivered right to your inbox!

Thank you for your subscription

×