lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@gmail.com>
Subject Re: ThreadPool threads leaking to suite scope.
Date Thu, 01 Mar 2012 10:50:55 GMT
> 1) initialize threads eagerly; use ThreadPoolExecutor and call
> prestartAllCoreThreads. this could be applied to LTC on the trunk.

I did this but threads still leak out from unclosed readers created by
LTC#newSearcher. I don't know why, but this isn't called --

       r.addReaderClosedListener(new ReaderClosedListener() {
         @Override
         public void onClose(IndexReader reader) {
           shutdownExecutorService(ex);
         }
       });

Clues?

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message