File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes File Opening limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "File Opening limit" Watch "File Opening limit" New topic

File Opening limit

Edy Yu
Ranch Hand

Joined: Nov 21, 2000
Posts: 264
I am running a Java program on USS (it's a unix enviroment on the mainframe). I want to know how many files/file descriptors my application has opened in order to make sure it won't pass the system limit. Is there any classes or methods in Java to tell me that?

SCJP, SCJD, SCWCD, SCBCD, SCEA, IBM Certified Enterprise Developer, WebSphere Studio V5.0
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Not that I am aware of. It all depends on how much memory you have available.


So much trouble in the world -- Bob Marley
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

I think a co-worker ran into this limit, I will post back here on Monday if I get anything.

Please ignore post, I have no idea what I am talking about.
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

My co-worker ran into a limit of 2000 open files. You can see the limit in unix with the "ulimit -a" command. The "nofiles" is the number of files which can be open. Your admin may be able to increase this number.
Sorry - I just read your original post again and I am not answering your question.
[This message has been edited by christopher foran (edited November 05, 2001).]
I agree. Here's the link:
subject: File Opening limit
It's not a secret anymore!