Re: Help: Too many files open



Tyrone Showers wrote:
I have a problem of getting the error "too many files open" and would like
to trace my application. However, I have found nothing about how to display
the current number of open files. Does anyone know what code is used to get
the current number of open files?

Also, is there a way to determine the number of open database connections?


Most all Java IDE's will let you do debugging at the instruction level. You may want to use it. To me that this sounds like a coding logic problem.

What OS are you running. JDK version? What file api's are you using?

For Database connections depends on how you are opening the connection(s). Do you spawn threads that have their own connections?

For me, I need more information!

I did a quick Google for the error you are getting and came up with a lot of hits. Can not determine what you are doing to indicate a match...

Google .. java too many files open

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
.



Relevant Pages

  • garbage collection of open resources
    ... Everything I have read suggests that if I open files or database connections ... My question is - could data corruption occur to any open data sources that ... simply means that those open resources will simply be locked ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Google Problem
    ... i too use Google to get here....and every time i start my computer i ... to re-sign in if i wish to post...have you restarted your computer ??? ... Just turning it off does not close open files. ... use, you can clear cookies, history and saved info. ...
    (alt.smokers.pipes)
  • Re: help needed in swing
    ... You can't compare things which are uncomparable, ... Java Date Picker has more votes then JIDEsoft ... Unified I/O is just a decorator over standard java I/O, ... configurable memory management and open files management ...
    (comp.lang.java.gui)
  • Re: Java runaway process
    ... I have a system here where /tmp is filling up, ... because when I enable this Java program /tmp starts to rise. ... there a 'ipcs' equivalence in Java? ... Use lsof to see what open files are held by your processes, ...
    (comp.lang.java.help)
  • Re: How to figure out the number of open files?
    ... but I would like to know the number of files openned by my java application. ... This application uses also 3rd party software where I have no control and ... would like to see the total number of open files. ...
    (comp.lang.java.programmer)