Re: memory leak during Lucene Search

2008-09-09 Thread Chris Lu
Thanks for the link! I will post the problem there. In the mean time, any J2EE application developers should know this problem and try to avoid Lucene checked out on or after May 23,2008, svn version 659602. I tried svn 659601, which worked fine. I will follow up on this email list when the proble

Re: memory leak during Lucene Search

2008-09-09 Thread Grant Ingersoll
Just chipping in that I recall there being a number of discussions on java-dev about ThreadLocal and web containers and how they should be handled. Not sure if it pertains here or not, but you might find http://lucene.markmail.org/message/keosgz2c2yjc7qre?q=ThreadLocal helpful. You might a

memory leak during Lucene Search

2008-09-06 Thread Chris Lu
Unless my understanding is wrong, there is a memory leak for Lucene search from Lucene-1195.(svn r659602, May23,2008) This patch brings in a ThreadLocal cache to TermInfosReader. It's usually recommended to keep the reader open, and reuse it when possible. In a common J2EE application, the http r