lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Is there a way to clear lucene's cache?
Date Mon, 07 Jan 2013 22:17:37 GMT
Lucene itself doesn't do any caching.  Maybe you are thinking of Solr?

The OS also does caching, so if you want a "cold" test you'll have to
tell the OS to flush its IO cache in between tests.  EG on Linux do
"sudo echo 3 > /proc/sys/vm/drop_caches".

Mike McCandless

On Wed, Jan 2, 2013 at 10:39 AM, S L <> wrote:
> I'm doing some performance testing and caching is not helpful for the tests.
> Is there a way to clear lucene's query cache between rounds of tests? I've
> tried restarting tomcat but that doesn't help.
> Thanks.
> --
> View this message in context:
> Sent from the Lucene - General mailing list archive at

View raw message