首页 > 系统服务 > 详细

Modify File Descriptor Limit on Linux

时间:2014-03-17 22:12:31      阅读:716      评论:0      收藏:0      [点我收藏+]

System-wide File Descriptor Limit

  • Get current value: sysctl fs.file-max

  • modify max fd limit: sysctl -w fs.file-max=10000

User File Descriptor Limit

  • Get current value: ulimit -n

  • modify max fd limit: ulimit -n 10000

  • use ulimit -a to print all limits of a user, such as fd, processes, etc.

Based on http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/

Ref:

http://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits

http://ss64.com/bash/ulimit.html

Modify File Descriptor Limit on Linux,布布扣,bubuko.com

Modify File Descriptor Limit on Linux

原文:http://www.cnblogs.com/darkmatter/p/3605686.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!