> -----Original Message-----
> From: Doug Cutting [mailto:[EMAIL PROTECTED]]
> 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.

peter

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to