Re: Help: Too many files open
- From: "Tyrone Showers" <owensvikki@xxxxxxxxxxxxx>
- Date: Sun, 18 Jun 2006 09:29:32 -0400
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:like
I have a problem of getting the error "too many files open" and would
displayto trace my application. However, I have found nothing about how to
getthe current number of open files. Does anyone know what code is used to
connections?the current number of open files?
Also, is there a way to determine the number of open database
problem.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
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-)
.
- Follow-Ups:
- Re: Help: Too many files open
- From: Oliver Wong
- Re: Help: Too many files open
- From: Gordon Beaton
- Re: Help: Too many files open
- References:
- Help: Too many files open
- From: Tyrone Showers
- Re: Help: Too many files open
- From: IchBin
- Help: Too many files open
- Prev by Date: Re: Help: Too many files open
- Next by Date: Re: Help: Too many files open
- Previous by thread: Re: Help: Too many files open
- Next by thread: Re: Help: Too many files open
- Index(es):
Relevant Pages
|
|