Skip navigation.
 
mlRe: Finding the place where an exception happens
FROM : Mark Dalrymple
DATE : Fri Oct 15 15:41:36 2004

> And yes, it is that same fd limit again. lsof reports I have 256 file

descriptors open.
> Now either I find a way to increase that on every system where my app

runs (10.2.8 and up)

You can raise the limit in your program to a system-defined maximum.
Check out the setrlimit() function, specifically the resource
      RLIMIT_NOFILE  The maximum number of open files for this process.

Setting it to RLIM_INFINITY should get you about 4K file descriptors.

Cheers,
++Mark Dalrymple, <email_removed>
  http://borkware.com

Related mailsAuthorDate
mlFinding the place where an exception happens Gerben Wierda Oct 15, 14:21
mlRe: Finding the place where an exception happens j o a r Oct 15, 14:29
mlRe: Finding the place where an exception happens Gerben Wierda Oct 15, 14:44
mlRe: Finding the place where an exception happens Mark Dalrymple Oct 15, 15:41
mlRe: Finding the place where an exception happens Finlay Dobbie Oct 15, 19:27
mlRe: Finding the place where an exception happens Hubert Figuiere Oct 19, 20:11
mlRe: Finding the place where an exception happens Timothy J.Wood Oct 19, 22:24
mlRe: Finding the place where an exception happens Matt Watson Oct 19, 23:33
mlCatching signals and exceptions in threads Jon Gotow Oct 20, 01:10
mlRe: Catching signals and exceptions in threads j o a r Oct 20, 01:35
mlRe: Catching signals and exceptions in threads Jon Gotow Oct 20, 06:11
mlRe: Catching signals and exceptions in threads Jon Gotow Oct 20, 16:44
mlRe: Catching signals and exceptions in threads Jonathan 'Wolf' Re… Oct 20, 17:11
mlRe: Catching signals and exceptions in threads George Warner Oct 20, 20:05