Thursday, December 8, 2011

increase Linux max number of FD limits


how to increase max fd

System level

  • sudo sysctl -w fs.file-max=100000
  • to survive the reboot: sudo vi /etc/sysctl.conf: fs.file-max = 100000

User level

  • sudo vi /etc/security/limits.conf:
    • uid soft nofile 4096
    • uid hard nofile 10240

No comments:

Post a Comment