dev@glassfish.java.net

Re: JarFile opening two files

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 14 Oct 2009 14:15:37 -0700

kedar wrote on 10/14/09 12:01:
> This is intriguing. I somehow feel that it is the lsof output on
> non-Solaris
> platforms that shows the same file listed twice. For example, Bill, in
> your case
> on Mac, the file descriptor (FD) is reported as 304r (fd/read) and txt
> (program code and data) for a file. For me, on Linux, for a similar server
> run, lsof shows two rows for a file with FD being mem (memory mapped
> file) and 304r (fd/read).

You may be right. I don't use lsof that often so I was thinking it was
similar to pfiles. It looks like the bundles are both open and mapped,
which is causing two entries in the lsof output.