dev@glassfish.java.net

Re: is quicklook working right now?

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Sat, 10 Oct 2009 23:15:37 -0700

Richard S. Hall wrote on 10/10/09 2:34 AM:
> On 10/10/09 11:16, Richard S. Hall wrote:
>> On 10/10/09 0:57, Bill Shannon wrote:
>>> Jeanfrancois Arcand wrote on 10/09/09 14:55:
>>>> Can you grab a lsof/pfiles snapshot when it runs? It might now be GF
>>>> itself but Maven.
>>>
>>> It's GlassFish/Felix. Here's a snapshot. Over 700 open files!!!
>>> Yow!!!
>>>
>>> It looks like Felix is opening many things twice. Almost 300 are dups.
>>
>> You will be happy to know that in 2.0.1, which will be released next
>> week, I've modified the cache to avoid opening each bundle JAR file
>> twice (previously, it was once to get the manifest and then once when
>> the bundle was going to use its content). So, perhaps we can check
>> this again once we integrate with 2.0.1.
>
> For clarification...are you saying it has duplicate files open at the
> same time or that it opened duplicate files? The former should not be
> true, while the latter is/was true for 2.0.0. I have done long-running
> tests with Felix, so I am fairly confident it closes its files. If it is
> the latter, then this should be addressed to at least some degree in the
> next maintenance release.

I don't understand the distinction you're making.

You can see in the listing I provided what's happening. The same file
is open on two different file descriptors, for 300 different files.