Ubuntu: too many files open

/etc/security/limits.conf

 

*                hard    core            4096