Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A fix for 'Too many open files' in bittorrent apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A fix for 'Too many open files' in bittorrent apps
Authored by: pope_cerebus on Oct 07, '04 01:17:50PM

To do this system wide, the easiest way is to edit the file /etc/bashrc (as root) and add your 'ulimit -n 1024' line at the end.

For csh users add 'limit descriptors 1024' to /etc/csh.cshrc (or maybe /etc/csh.login). For csh you can use 'limit descriptors unlimited' which will set it to the hard system limit.

AFAIK the 'sysctl' sets the hard (max) limits which you may not want to change. The 'ulimit' and 'limit' command set the soft limits (for normal users) so are more appropriate.

Cerebus



[ Reply to This | # ]
A fix for 'Too many open files' in bittorrent apps
Authored by: _merlin on Oct 07, '04 07:23:54PM

Won't work, because we usually launch things from the Finder, not from a shell.



[ Reply to This | # ]
A fix for 'Too many open files' in bittorrent apps
Authored by: pope_cerebus on Oct 08, '04 08:54:26AM

Possibly , I haven't tested it.

Though the Finder is owned by the user, so must be launched with the user's system limits. If this is set system wide, then it should apply to all applications no matter how they are launched.

You would have to login again to see if it made a difference.

Cerebus



[ Reply to This | # ]