And i will run a java app using nohup ... &
The setting must affect on this.
And i will run a java app using nohup ... &
The setting must affect on this.
ulimit -n
can modify per process settings and
/proc/sys/fs/file-max
or the sysctl variable called fs.file-max
can be used to read and set the system-wide value
you can add fs.file-max = <your number>
into /etc/sysctl.conf
. Then reboot.
You can use ulimit for this:
http://bloggerdigest.blogspot.com/2006/10/purpose-of-ulimit-linux-command.html
Although you should make sure that opening so many file handles is absolutely necessary before resorting to such adjustments. Increasing the maximum file handles just because you have forgotten to do an inputstream.close() in a loop is only going to delay the underlying problem.