in reply to Unclosed File Descriptors cause Application crash

Well, close the file handle when it's not needed any more.

Or what is your problem? no access to the source code of the offending program?

If a process hogs open file handle until it crashes that's certainly a bug.

  • Comment on Re: Unclosed File Descriptors cause Application crash

Replies are listed 'Best First'.
Re^2: Unclosed File Descriptors cause Application crash
by sir_com (Acolyte) on Jun 05, 2008 at 11:12 UTC
    Moritz, That's fine...I understand that it can be a bug of OS level but my question is not that... What I am trying to figure out is...How to identify which process (in my case the application)is the culprit behind this situation. As I have mentioned...top will not be of any use. This is really a weired situation.
      I'd expect the crashing process to be the one which has too many opened file handles.

      On a unixish system you can also consult the output of lsof.

      BTW when you write result of top command show CPU% MEM% as 0/1 for the particular application. I read that as "CPU usage is not a problem", not as "the output isn't helpful for me". Try to actually say what you think, not say something different and hope that everybody else comes to the same conclusions as you.