file descriptors
Denis Vlasenko
vda.linux at googlemail.com
Fri Feb 9 00:10:27 UTC 2007
On Saturday 16 December 2006 00:26, Eric Perraud wrote:
> Hello,
>
> My application, running on busy box, potentially needs more than 1024 file
> descriptors available to it.
>
> I have tried "ulimit -n 2048" on the command line and also tried adding the
> same line to the end of /etc/profile.
>
> Either way, doing a "ulimit -a" shows nofiles 2048, however my application
> is still no longer able to open a file descriptor once it reaches 1024
> (verified by doing a ls | wc -w in /proc/<pid>/fs).
>
> Additionally, I have verifed that the entire system is not running out of
> fd's by examining the values in /proc/sys/fs/file-nr
>
> Any ideas on how to raise the "per process " file descriptor limit would
> much appreciated.
Google said me that I maybe need:
echo 32768 > /proc/sys/fs/file-max
increases the system limit on open files, and
ulimit -n 32768
increases the current process' limit.
On yet another page I read about increasing
/proc/sys/fs/inode-nr
too
I suggest you use Google too.
--
vda
More information about the busybox
mailing list