[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2085
  • Last Modified:

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


0
cjferris
Asked:
cjferris
2 Solutions
 
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.
0
 
biraCommented:
0
 
fpintosCommented:
You can download lsof for your version of AIX here:

http://aixpdslib.seas.ucla.edu/packages/lsof.html
0
 
cjferrisAuthor Commented:
Both downloads worked great.  Now check out my next question about reading the results from lsof.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now