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
Python is beautiful, explicit and simple.
sudo sysctl -w fs.file-max=100000
to survive the reboot: sudo vi /etc/sysctl.conf:
fs.file-max = 100000sudo vi /etc/security/limits.conf:
uid hard nofile 10240
No comments:
Post a Comment