{"id":1773,"date":"2015-08-26T00:25:19","date_gmt":"2015-08-25T22:25:19","guid":{"rendered":"http:\/\/www.switchbl8.nl\/blog\/?p=1773"},"modified":"2015-08-26T00:25:19","modified_gmt":"2015-08-25T22:25:19","slug":"ubuntu-open-files-limit","status":"publish","type":"post","link":"https:\/\/www.switchbl8.nl\/blog\/2015\/08\/ubuntu-open-files-limit\/","title":{"rendered":"Ubuntu open files limit"},"content":{"rendered":"<p>With <code>ulimit -n<\/code> you can see what the maximum number of open files can be. As superuser you can change that -per session- with the ulimit command, but an ordinary user can not do that. Therefore, you need to change the \/etc\/security\/limits.conf file. For instance:<\/p>\n<p>*  soft  nofile  10000<br \/>\n*  hard  nofile  10000<\/p>\n<p>Meaning that the hard and soft limit are now increased to 10000. I didn&#8217;t know that this does not change the limits for the superuser. The asterisk (*) is not intended to change superuser limits. Instead, repeat both lines, changing the asterisk to the word root. You might need a reboot for that, but that&#8217;s all.<\/p>\n<p>I needed this for <a href=\"http:\/\/neo4j.com\/\">Neo4j<\/a> and was surprised to see that normal users could have more open files than the superuser. No more, I say, no more!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With ulimit -n you can see what the maximum number of open files can be. As superuser you can change that -per session- with the ulimit command, but an ordinary user can not do that. Therefore, you need to change the \/etc\/security\/limits.conf file. For instance: * soft nofile 10000 * hard nofile 10000 Meaning that <a href='https:\/\/www.switchbl8.nl\/blog\/2015\/08\/ubuntu-open-files-limit\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[137,81,95],"class_list":["post-1773","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-tips","tag-ubuntu","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/comments?post=1773"}],"version-history":[{"count":2,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1773\/revisions"}],"predecessor-version":[{"id":1776,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/posts\/1773\/revisions\/1776"}],"wp:attachment":[{"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/media?parent=1773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/categories?post=1773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.switchbl8.nl\/blog\/wp-json\/wp\/v2\/tags?post=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}