Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
File Descriptors Leak
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Oz Levanon, post: 547807"] Hi. I'm running a tomcat server on Linux (2.4.20-8smp) with a constant load of users sending requests to it. I've noticed that the number of used file-descriptors on the machine increases with time (I use "lsof -a -d 0-10000000 | wc -l" to count the number of used file-descriptors). Once in a while, supposedly when the GC runs, the number goes down, but over long periods of time it steadily increases. I take this to mean that I have a leak somehwere. I wanted to ask if I have to explicitly close all open files (using FileInputStream.close and similar methods) in order to free file-descriptors, or is it taken care of automatically by the GC whenever it runs? TIA, Oz. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
File Descriptors Leak
Top