limitation of number of open files

From: Zaigui Wang (zaigui@yahoo.com)
Date: Tue Mar 18 2003 - 18:31:27 EST


Managers,

We recently came to realize that the stdio library
limitation on number of open files could possibly have
contributed to the intermittent failure of our
application. The application runs tons of batches
processes every day and writes lots of log file of a
variety types.

Sun's document (Free FAQ ID: 01406 on sunsolve) seems
to confirm that if a 32-bit application uses FOPEN()
calls to manipulated files, it will be seriously
handicapped by the availability of 256 file
descriptors. While OPEN() system calls do not have
this restriction.

The application itself does not give much hints about
what happened, so we need to somehow monitoring the
system and pinpoint the cause of its failure. So my
question is:

What is the best tool to monitor open files.
Furthermore, how is file opened, namely, through
OPEN() or FOPEN()? More specifically, how do I know if
all file descriptor under 256 are being used up? I
expect a lot of you guys are going to recommend
"lsof". I would appreciate some example usage for this
purpose, please.

Thanks!

Zaigui
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:01 EDT