This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "File Opening limit" Watch "File Opening limit" New topic
Author

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?
Thanks.

<i><br />Sun Certified Programmer for Java 2 Platform (SCJP)<br />Sun Certified Developer for Java 2 Platform (SCJD)<br />Sun Certified Web Component Developer for Java2 Platform, Enterprise Edition (SCWCD)<br />Sun Certified Business Component Developer for Java2 Platform, Enterprise Edition (SCBCD)<br />Sun Certified Enterprise Architect for J2EE (SCEA)<br />IBM Certified Enterprise Developer, WebSphere Studio V5.0<br /></i>
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.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

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: 984

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).]
 
Consider Paul's rocket mass heater.
 
subject: File Opening limit
 
Similar Threads
File Size Issue while delivering file more than 2gb using java.nio.channels.FileChannel.transferFrom
maximum size in memory file
code too long
Java Preferences - Any size limit on storage?
Maximum size of Java Object