_which_ solrCache objects? filterCache? result cache? documentcache?

result cache is about "average size of a query" + "window size *
sizeof int) for each entry.
filter cache is about "average size of a filter query" + maxdoc/8
document cacha is about "average size of the stored fields in bytes" * size.

HTH,
Erick

On Mon, Apr 14, 2014 at 5:17 PM, Gregg Donovan <gregg...@gmail.com> wrote:
> We'd like to graph the approximate RAM size of our SolrCache instances. Our
> first attempt at doing this was to use the Lucene RamUsageEstimator [1].
>
> Unfortunately, this appears to give a bogus result. Every instance of
> FastLRUCache was judged to have the same exact size, down to the byte. I
> assume this is due to an issue with how the variably-sized backing maps
> were calculated, but I'm not sure.
>
> Any ideas for how to get an accurate RAM estimation for SolrCache objects?
>
> --Gregg
>
> [1] https://gist.github.com/greggdonovan/10682810

Reply via email to