{"id":148,"date":"2013-01-13T09:52:01","date_gmt":"2013-01-13T13:52:01","guid":{"rendered":"http:\/\/www.mufljuz.com\/?p=148"},"modified":"2014-09-23T10:44:55","modified_gmt":"2014-09-23T14:44:55","slug":"webapp-error-errno-24-too-many-open-files","status":"publish","type":"post","link":"https:\/\/www.mufljuz.com\/?p=148","title":{"rendered":"WebApp Error: <type 'exceptions.OSError'>: [Errno 24] Too many open files"},"content":{"rendered":"<p>Most likely the number of file descriptors not enough.<br \/>\nCheck for number of file descriptors with<\/p>\n<pre>\r\nulimit -a\r\nulimit -n\r\n<\/pre>\n<p>Increase in <code>\/etc\/security\/limits.conf<\/code><\/p>\n<p><code><br \/>\nusername              hard    nofile          3072<br \/>\nusername              soft    nofile          2048<br \/>\n<\/code><\/p>\n<p>Another things to do, if above solution doesn&#8217;t help. As suggested at <a href=\"http:\/\/stackoverflow.com\/questions\/2569620\/socket-accept-error-24-to-many-open-files\">slashdot<\/a>, increase number of max open connections in sysctl.conf, kernel headers and security limits.<\/p>\n<p>Params that configure max open connections.<\/p>\n<p>At <code>\/etc\/sysctl.conf<\/code> add:<br \/>\n<code><br \/>\nnet.core.somaxconn=131072<br \/>\nfs.file-max=131072<br \/>\n<\/code><br \/>\nand then:<\/p>\n<pre>\r\nsudo sysctl -p\r\n<\/pre>\n<p>at <code>\/usr\/include\/linux\/limits.h<\/code><\/p>\n<p>change:<br \/>\n<code><br \/>\nNR_OPEN = 65536<br \/>\n<\/code><\/p>\n<p>at <code>\/etc\/security\/limits.conf<\/code><\/p>\n<p>add:<br \/>\n<code><br \/>\n*                soft    nofile          65535<br \/>\n*                hard    nofile          65535<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Most likely the number of file descriptors not enough. Check for number of file descriptors with ulimit -a ulimit -n Increase in \/etc\/security\/limits.conf username hard nofile 3072 username soft nofile 2048 Another things to do, if above solution doesn&#8217;t help. As suggested at slashdot, increase number of max open connections in sysctl.conf, kernel headers and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/148"}],"collection":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=148"}],"version-history":[{"count":9,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/148\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}