On Mon, Aug 3, 2009 at 2:46 PM, vivek sar<vivex...@gmail.com> wrote: > So, if I run only one sort query once in a day there would still be > 4GB required at all time. Is there any way to tell Solr/Lucene to > release the memory once the query has been run? Basically I don't want > cache. I've commented out all the cache parameters in the > solrconfig.xml, but I still see the very first time I run the sort > query the memory jumps by 4 G and remains there.
There is currently no way to tell Lucene not to cache the FieldCache entry it uses for sorting. If you call commit though, a new searcher will be opened and the memory should be released. -Yonik http://www.lucidimagination.com