1. Check the current open file limit
ulimit -n
2. Increase the open file limit temporarily
unlimit -n 20000
3. Increase the open file limit permanently
vim /etc/security/limits.conf
Add:
* - nofile 20000
ulimit -n
unlimit -n 20000
vim /etc/security/limits.conf
Add:
* - nofile 20000