{"id":3249,"date":"2014-06-24T01:52:48","date_gmt":"2014-06-23T17:52:48","guid":{"rendered":"http:\/\/rmohan.com\/?p=3249"},"modified":"2014-06-24T01:52:48","modified_gmt":"2014-06-23T17:52:48","slug":"maximum-number-of-file-descriptors-rhel-centos","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3249","title":{"rendered":"maximum-number-of-file-descriptors-rhel-centos"},"content":{"rendered":"<p>cat \/proc\/sys\/fs\/file-max<br \/>\n589420<br \/>\nThe output tells us it is set to 589420.<br \/>\nThe vendor asked for this to be increased to 1639200. We can add change the value immediately by executing:<br \/>\n# sysctl -w fs.file-max=1639200<br \/>\nTo make this a permanent setting applied everytime the system reboots an edit of \/etc\/sysctl.conf file is required. Add:<br \/>\nfs.file-max = 1639200<br \/>\nSave the changes to the file and execute sysctl -p, this will put the changes into effect.<br \/>\n# sysctl -p<br \/>\nnet.ipv4.ip_forward = 0<br \/>\nnet.ipv4.conf.default.rp_filter = 1<br \/>\nnet.ipv4.conf.default.accept_source_route = 0<br \/>\nkernel.sysrq = 0<br \/>\nkernel.core_uses_pid = 1<br \/>\nnet.ipv4.tcp_syncookies = 1<br \/>\nnet.bridge.bridge-nf-call-ip6tables = 0<br \/>\nnet.bridge.bridge-nf-call-iptables = 0<br \/>\nnet.bridge.bridge-nf-call-arptables = 0<br \/>\nkernel.msgmnb = 65536<br \/>\nkernel.msgmax = 65536<br \/>\nkernel.shmmax = 68719476736<br \/>\nkernel.shmall = 4294967296<br \/>\nfs.file-max = 1639200<br \/>\nThats all there is to it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cat \/proc\/sys\/fs\/file-max 589420 The output tells us it is set to 589420. The vendor asked for this to be increased to 1639200. We can add change the value immediately by executing: # sysctl -w fs.file-max=1639200 To make this a permanent setting applied everytime the system reboots an edit of \/etc\/sysctl.conf file is required. Add: fs.file-max [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4,17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3249"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3249"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3249\/revisions"}],"predecessor-version":[{"id":3250,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3249\/revisions\/3250"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}