Re: Help: Too many files open



I am using JDK 1.4.

The application runs on Linux and Windows.

I do know how to debug. I am using Log4J to help in debugging.

I do know I have a logic problem.

I have searched Google for "Too many files Open" for days for a resolution.

I have all Stream commands surrounded by a try catch with a finally closing
the stream.

This is a massive application and the problem could be anywhere, hence the
reason for tracing. There is really no code to post, because I don't know
where the problem lies.

I would just like to know if Java provides an API to determine your current
level of Open files e.g.,

Files.getCurrentOpenCount();

or

DatabaseConnection.getCurrentConnectionCount();

And if Java does provide such methods, is there a way to force the JVM to
close these lingering Opens.




"IchBin" <weconsul@xxxxxxx> wrote in message
news:PsGcnQCpdOcacwnZUSdV9g@xxxxxxxxxx
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

  • Re: Java XP Pro
    ... Strange you say Sun Java 1.4.2_03 would open it.. ... ANY of my java applets on the rest of my site... ... I have had a myriad of Java problems with this new XP PRO. ... >> opens it with NO problem... ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: IE6 partially crashes Windows XP
    ... So I installed Sun's Java, ... install). ... >> IE6 opens up normally, and loads the first page I go to ... >> If I can close the IE window, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Class Viewer, Google searches, and rankings
    ... Maybe more on-topic for Java developers I will again admit that I am ... I know now developers are using IDE's ... opens them up in an instant to the method I want, ... int codePointAt ...
    (comp.lang.java.programmer)
  • Re: Downloading Pogo Games
    ... Visit my MSN Games and Windows Gaming Help Site: ... tried as suggested still cant even open webpage yet it opens on my ... Online games are usually developed using Flash, Java, or Virtual Machine. ... Maybe it's a software conflict: Make certain that your Firewall or Antivirus program is ...
    (microsoft.public.windowsxp.games)
  • Re: Downloading Pogo Games
    ... Visit my MSN Games and Windows Gaming Help Site: ... Online games are usually developed using Flash, Java, or Virtual Machine. ... Check the Help / Support section of the game site in question for Java topics relevant to ...
    (microsoft.public.windowsxp.games)