• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Opening limit

 
Edy Yu
Ranch Hand
Posts: 264
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not that I am aware of. It all depends on how much memory you have available.

Bosun
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think a co-worker ran into this limit, I will post back here on Monday if I get anything.
 
William Barnes
Ranch Hand
Posts: 986
Eclipse IDE Firefox Browser Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic