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

Posted on 2006-05-24
Last Modified: 2013-12-06

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


Question by:cjferris
    LVL 23

    Expert Comment

    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.
    LVL 6

    Assisted Solution

    LVL 2

    Accepted Solution

    You can download lsof for your version of AIX here:

    Author Comment

    Both downloads worked great.  Now check out my next question about reading the results from lsof.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
    Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now