I have a process (java program)that require many temporary files. There is limit set that we cannot have more than 1024 open descriptors. How do I increase "open files" limit for process from 1024 to 10240
I can reduce the value.. not increase it.
The following works.
ulimit -n 899
The following does not work
ulimit -n 1025
Best Answer
You will need root access to increase it. If you're using Ubuntu (also works for other distros): http://ubuntuforums.org/archive/index.php/t-521287.html
If you're using bash, the command is 'ulimit -n'. To change the limit permanently edit /etc/security/limits.conf (your distro may use a different location).
For a list of all options, use -a: