{"id":1043,"date":"2017-10-15T09:11:25","date_gmt":"2017-10-15T14:11:25","guid":{"rendered":"http:\/\/xfloyd.net\/blog\/?p=1043"},"modified":"2017-10-15T14:33:33","modified_gmt":"2017-10-15T19:33:33","slug":"errcode-24-too-many-open-files-23-plesk-onyx-17-5-3-and-ubuntu-16-04-2-lts%e2%80%ac","status":"publish","type":"post","link":"https:\/\/xfloyd.net\/blog\/?p=1043","title":{"rendered":"(Errcode: 24 &#8211; Too many open files) [23] &#8211; Plesk Onyx 17.5.3 and Ubuntu 16.04.2 LTS\u202c"},"content":{"rendered":"<p>As of MySQL 5.7.7, this is what the documentation recommends for Red Hat Enterprise Linux 7, Oracle Linux 7, CentOS 7, SUSE Linux Enterprise Server 12, Fedora 24 and 25:<\/p>\n<p>https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/using-systemd.html<\/p>\n<p>On Ubuntu 16.04 the service is called mysql, not mysqld, so this is what I did:<\/p>\n<p>sudo mkdir \/etc\/systemd\/system\/mysql.service.d<br \/>\nsudo vi \/etc\/systemd\/system\/mysql.service.d\/override.conf<br \/>\nAdded this in the new file override.conf:<\/p>\n<p><code>[Service]<br \/>\nLimitNOFILE=1024 4096<\/p>\n<p>Then restarted the service:<\/code><\/p>\n<p><code>sudo systemctl daemon-reload<br \/>\nsudo systemctl restart mysql<\/code><\/p>\n<p>and test it with<\/p>\n<p><code>cat \/proc\/$(pgrep mysql)\/limits | grep files<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of MySQL 5.7.7, this is what the documentation recommends for Red Hat Enterprise Linux 7, Oracle Linux 7, CentOS 7, SUSE Linux Enterprise Server 12, Fedora 24 and 25: https:\/\/dev.mysql.com\/doc\/refman\/5.7\/en\/using-systemd.html On Ubuntu 16.04 the service is called mysql, not mysqld, so this is what I did: sudo mkdir \/etc\/systemd\/system\/mysql.service.d sudo vi \/etc\/systemd\/system\/mysql.service.d\/override.conf Added this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"_links":{"self":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1043"}],"collection":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1043"}],"version-history":[{"count":2,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1043\/revisions"}],"predecessor-version":[{"id":1045,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1043\/revisions\/1045"}],"wp:attachment":[{"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xfloyd.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}