> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to