On 6/22/22 04:40, Poorna Murali wrote:
Thanks everyone for the inputs on my post yesterday! It did help me to
clarify the doubts.

@David - I believe that the clearcache.sh you mentioned in the link (
https://www.tecmint.com/clear-ram-memory-cache-buffer-and-swap-space-on-linux/)
will clear the solr caches and field cache too. Please correct me if I am
wrong.

That web page is talking about clearing memory structures in the Linux operating system.  It will clear any Solr index data that has ended up in the OS disk cache, but it cannot touch Java memory, which means it cannot touch Solr's caches.

Clearing the disk cache (called pagecache on that page) will temporarily cause Solr to run slower, because frequently accessed index data won't be in memory.  Disks are a LOT slower than memory.

The best way to be completely sure that Solr's caches have been emptied is reload the core.  Restarting Solr will also work.  Note that any warming queries that have been defined in solrconfig.xml will begin populating Solr's caches.

Thanks,
Shawn

Reply via email to