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" <we******@ptd.net> wrote in message
news:Ps********************@ptd.net...
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-)