++wythern++

X presents Y for a better Z

编译android出现"too many open files"的解决办法

# vi /etc/sysctl.conf
Append a config directive as follows:
fs.file-max = 100000

# vi /etc/security/limits.conf
Set httpd user soft and hard limits as follows:
httpd soft nofile 4096
httpd hard nofile 10240

Save and close the file. To see limits, enter:
# su - httpd
$ ulimit -Hn
$ ulimit -Sn

PS:好像需要重启才能生效


参考资料
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/

posted on 2012-02-06 15:28 wythern 阅读(2242) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理