• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Posix error 24
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posix error 24


  • Subject: Re: Posix error 24
  • From: Ken Thomases <email@hidden>
  • Date: Sat, 15 May 2010 09:44:26 -0500

On May 15, 2010, at 9:39 AM, Paul Sanders wrote:

>> On May 15, 2010, at 9:24 AM, The Geezer wrote:
>>
>> I wrote a cocoa application that periodically gets a posix error 24.
>> I know this means my app's number of open files has exceeded kern.maxfilesperproc, however, I can't figure out when and where I'm leaving files open. This appears to be happening after accessing several hundred web pages.
>>
>> I would like to be able to keep track of what the system considers to be the number of files open at any given time to help debug my program. I assume it is the fields kern.openfiles and kern.maxfilesperproc that I need to access.
>

> Use lsof from the command line.

Probably easier and more productive to use Instruments and the File Activity instrument.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Posix error 24
      • From: Ken Thomases <email@hidden>
    • Re: Posix error 24
      • From: Mark Ritchie <email@hidden>
References: 
 >Posix error 24 (From: The Geezer <email@hidden>)

  • Prev by Date: Re: Posix error 24
  • Next by Date: Re: Posix error 24
  • Previous by thread: Re: Posix error 24
  • Next by thread: Re: Posix error 24
  • Index(es):
    • Date
    • Thread