You can set limits for process such as open files making changes in /etc/security/limits.conf. If you want this file to be re-read you have to reboot the system. But with this command you can set limits on the fly.
bash |copy code |?
1 2 ulimit -n