On 5 apr 2011, at 02:40, Johnny Miller wrote:
Hi,
I was wondering if anyone else had experienced the same thing. I have a X-Serve running OS X 10.5.8 whose apache server is going into a frozen state where it stops serving requests and can only be restarted by rebooting the machine. All other services seem to being running normally.
If I look at the error_log I see many variations of this error:
Too many open files in system:Some/path/on/system
Does anyone have more wisdom to share?
I once had a similar problem when I started my own objectstore coordinator for each session, along the line of:
// this causes all kinds of mayhem: do not do this at home, it creates a new database connection for every session
// EOObjectStoreCoordinator coord = new EOObjectStoreCoordinator();
// myEc = ERXEC.newEditingContext(coord);
// myEc().setDelegate(this);
After that, the database would have so many open connections after a while that the database would have too many open files, and would break down.
I also seem to remember that some apache configuration would freeze with a specific log-rotation setup. (that was apache 1.3 on a FreeBSD machine)
Furthermore I would look for something in apache that opens a file but never closes these. You might use opensnoop for that, see man opensnoop, or lsof might give you some clues.
Thanks in advance,
Johnny Miller
Johan Henselmans