AIX 4.3 too many open files issue. How to tell how many files are open.

Hello

We got a Java app running 24x7 on a AIX 4.3 box. (Which means we have to build the jar files at version 1.3)  After it runs for a while we get an “Too many open files” error.  But before tackling the cause of this I would like to know is there a AIX command that will display exactly how many files or file descriptors are in use or open for a given pid. I’m not a AIX expert, just a novice (if that). The Unix command isof does not exist on our AIX version it’s not in my path.

TEST /usr/acct/acmmgr> lsof
ksh: lsof:  not found.

And ulimit just seems to show the current settings.

TEST /usr/acct/acmmgr> ulimit -a
time(seconds)        unlimited
file(blocks)         4194302
data(kbytes)         131072
stack(kbytes)        32768
memory(kbytes)       32768
coredump(blocks)     2097151
nofiles(descriptors) 900

Thanks


cjferrisAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

brettmjohnsonCommented:
900 file descriptors per process is usually sufficient.  [I typically configure for 1024].
You are leaking file descriptors, either via open files or open sockets.

IIRC, lsof appeared in AIX 4.5 or so, so your old box seems to lack it.
fpintosCommented:
You can download lsof for your version of AIX here:

http://aixpdslib.seas.ucla.edu/packages/lsof.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cjferrisAuthor Commented:
Both downloads worked great.  Now check out my next question about reading the results from lsof.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.