I really question whether this is valuable. Much of Solr performance is there explicitly because of caches, so what you're measuring is disk I/O to fill caches and any other latency. I'm just not sure what operational information you'll get here.
But assuming that you're really getting actionable data, you can comment out all of the caches in the solrconfig.xml file to at least remove those. The underlying lucene caches will not be emptied, but they'll always be filled anyway for all the queries after the first few, you can't avoid them. Best Erick On Fri, Jun 7, 2013 at 3:24 AM, Varsha Rani <varsha.ya...@orkash.com> wrote: > Hi > > 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. > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Clear-cache-used-by-Solr-tp4068817.html > Sent from the Solr - User mailing list archive at Nabble.com.