Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Lew Newsgroups: comp.lang.java.programmer Subject: Re: java.io.File Date: Fri, 2 Dec 2011 07:25:02 -0800 (PST) Organization: http://groups.google.com Lines: 12 Message-ID: <1754083.312.1322839502470.JavaMail.geo-discussion-forums@prjr26> References: Reply-To: comp.lang.java.programmer@googlegroups.com NNTP-Posting-Host: 216.239.45.130 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1322839503 31834 127.0.0.1 (2 Dec 2011 15:25:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 2 Dec 2011 15:25:03 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=216.239.45.130; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T User-Agent: G2/1.0 X-Google-Web-Client: true Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10424 Mark wrote: > Can a java.io.File object use a OS file descriptor? I am trying to > find the source of a fd leak in a[n] application. At some point, depending on the operations performed by the 'File' instance, there may be a file descriptor involved, and then the 'File' instance certainly does use it, at least indirectly via JVM system calls that proxy to OS system calls. From a Java perspective you should look for unclosed I/O streams/channels and packratted 'File' instances rather than file descriptors. Of course I'm shooting in the dark since you've said absolutely nothing about your application, much less provided an http://sscce.org/. -- Lew