lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Halácsy Péter <>
Subject RE: CachedSearcher
Date Tue, 16 Jul 2002 23:05:31 GMT

> -----Original Message-----
> From: Doug Cutting []
> Sent: Tuesday, July 16, 2002 6:56 PM
> To: Lucene Users List
> Subject: Re: CachedSearcher
> I would be very surprised 
> if finalizers for 
> the hundreds of files that Lucene might open in a session 
> would have any 
> measurable impact on garbage collector performance given the 
> millions of other 
> objects that the garbage collector might process in that session.

I think your are right: using finalize method to release a resource has no measurable impact
on garbage collector performance.

But if the jvm has no time to run the garbage collector than the finalize method won't be
called  --> too many file opened exception (it is the limit of the OS not of the jvm)

I'm not sure that all jvm's garbage collector runs as soon as possible.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message