Re: POSIX error: Too many open files
Re: POSIX error: Too many open files
- Subject: Re: POSIX error: Too many open files
- From: Half Activist <email@hidden>
- Date: Fri, 9 Feb 2007 09:43:07 +0100
Hi Jerome,
With Activity Monitor.app, you can inspect a process, and in the
process inspector window, there is the Open Files and Ports that
gives you the list of open files and ports your application currently
uses.
I don't quite remember, but there are POSIX calls to retrieve the
open file handles, maybe you could give a look at the "fcntl" system
call (try the man page)
Regards.
On Feb 9, 2007, at 8:50 AM, Jérome Laurens wrote:
Hi,
I do not know how I designed my big cocoa document based
application, but it appears sometimes that too many files are opened.
It certainly means that I forget to close some files, but I do not
know how it can happen.
I have tried to find some memory leaks concerning file handles with
no success.
Is it possible to have my app observe how many files are currently
opened?
Other ideas?
TIA
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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