Re:RE: About lucene memory consumption

2014-06-28 Thread 308181687
use ‍MMapDirectory instead of NRTCachingDirectory?‍‍ Thanks & Best Regards! ‍ -- Original -- From: "lubin";<308181...@qq.com>; Date: Sat, Jun 28, 2014 02:03 PM To: "java-user"; Subject: Re:RE: About lucene memory consum

Re:RE: About lucene memory consumption

2014-06-27 Thread 308181687
quot;<308181...@qq.com>; Subject: Re:RE: About lucene memory consumption Could it be that you forgot to close older IndexReaders after getting a new NRT one? This would be a huge memory leak. I recommend to use SearcherManager to handle real time reopen correctly. Uwe Am 27. Juni 2014

Re:RE: About lucene memory consumption

2014-06-27 Thread Uwe Schindler
Could it be that you forgot to close older IndexReaders after getting a new NRT one? This would be a huge memory leak. I recommend to use SearcherManager to handle real time reopen correctly. Uwe Am 27. Juni 2014 16:05:19 MESZ, schrieb 308181687 <308181...@qq.com>: >Hi, > Thanks very much for

Re:RE: About lucene memory consumption

2014-06-27 Thread 308181687
Hi, Thanks very much for your reply. Because we need near real time search, we decide to use NRTCachingDirectory instead of MMapDirectory. ‍ Code to create ‍Directory as follows :‍ Directory ‍indexDir = FSDirectory.open(new File(indexDirName)); NRTCachingDirectory cachedFSDir = new NR