{"id":708,"date":"2016-02-19T06:42:53","date_gmt":"2016-02-19T06:42:53","guid":{"rendered":"http:\/\/www.selinuxplus.com\/?p=708"},"modified":"2016-02-19T06:42:53","modified_gmt":"2016-02-19T06:42:53","slug":"too-many-open-files","status":"publish","type":"post","link":"http:\/\/www.selinuxplus.com\/?p=708","title":{"rendered":"too many open files"},"content":{"rendered":"<p>too many open files<\/p>\n<pre class=\"lang:default decode:true \" >ulimit -a <\/pre>\n<p>\u67e5\u770b\u9650\u5236\u6570\u8bbe\u7f6e<\/p>\n<pre class=\"lang:default decode:true \" >\/etc\/security\/limits.conf<\/pre>\n<p>\u67e5\u770b\u8bbe\u7f6e<\/p>\n<p>\u67e5\u770b\u662f\u54ea\u4e2a\u5360\u7528\u7684\u8f83\u591a\u53e5\u67c4<\/p>\n<pre class=\"lang:default decode:true \" >[root@ipmi112 ~]# lsof -n |awk '{print $2}'|sort|uniq -c |sort -nr|more\r\n   7266 28483\r\n   6820 18104\r\n   6783 8764\r\n   6741 30419\r\n   6720 6659\r\n   6636 29557\r\n   6615 2065\r\n   1690 5579\r\n   1530 3126\r\n   1449 4871\r\n   1442 6727\r\n   1326 8505\r\n   1292 6410\r\n   1292 30172\r\n   1292 28244\r\n   1292 1810\r\n   1275 17864\r\n   1236 3535\r\n   1236 21211\r\n   1235 8701\r\n   1235 6603\r\n   1235 30362\r\n   1235 29507\r\n   1235 28426<\/pre>\n<p>   \u7b2c\u4e00\u5217\u4e3a\u6570\u91cf\uff0c\u7b2c\u4e8c\u5217\u4e3a\u8fdb\u7a0b\u53f7<br \/>\n\u53ef\u4ee5\u4f7f\u7528ps -ef |grep pid \u67e5\u770b\u8fdb\u7a0b\u540d\uff0cpwdx\u67e5\u770b\u8fdb\u7a0b\u8def\u5f84<\/p>\n","protected":false},"excerpt":{"rendered":"<p>too many open files ulimi&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[159],"_links":{"self":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/708"}],"collection":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=708"}],"version-history":[{"count":1,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/708\/revisions"}],"predecessor-version":[{"id":709,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/708\/revisions\/709"}],"wp:attachment":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}