lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toke Eskildsen>
Subject Re: Clear cache used by Solr
Date Fri, 07 Jun 2013 08:17:52 GMT
On Fri, 2013-06-07 at 09:24 +0200, Varsha Rani wrote:
> I 'm trying to compare the performance of different Solr queries. In order
> to get a fair test, I want to clear the cache between queries.
> How is this done? Of course, one can restart the server, I was to know if
> there is a quicker way.

That depends on your system. If you are using Linux or OSX, this should
sudo echo 1 > /proc/sys/vm/drop_caches
For Windows, CacheSet seems to provide the functionality:

To avoid any leftover from memory mapping vs. cache trickery, I stop
Solr, issue the drop_caches call and start Solr again.

- Toke Eskildsen

View raw message