This is from ConcurrentMergeScheduler (the default MergeScheduler). But, are you sure the threads are sleeping, not exiting? (They should be exiting).
This merge scheduler starts a new thread when a merge is needed, allows that thread to do another merge (if one is immediately available), else the thread exits. Mike McCandless http://blog.mikemccandless.com On Sun, Feb 19, 2012 at 9:05 PM, Benson Margulies <bimargul...@gmail.com> wrote: > A long-running program of mine (which Uwe's read a model of) slowly > keeps adding merge threads. I count 22 at the moment. Each one shows > up, runs for a bit, and then goes to sleep for, seemingly ever. I > don't do anything explicit to control merging behavior. > > They name themselves "Lucene Merge Thread #xxx" where xxx is a > non-contiguous but ever-growing number. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org