in mycase of tomcat error on ubuntu 14.04 too many files open,
even though limit is 8096, proc limit says 4096. why ? any body?
ranjan@ubuntu:~$ cat /proc/22897/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 56045 56045 processes
Max open files 4096 4096 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 56045 56045 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
ranjan@ubuntu:~$ sysctl -a |grep file
sysctl: permission denied on key 'fs.protected_hardlinks'
sysctl: permission denied on key 'fs.protected_symlinks'
fs.file-max = 1426057 fs.file-nr = 8096 0 1426057
sysctl: permission denied on key 'kernel.cad_pid'
fs.xfs.filestream_centisecs = 3000