[ https://issues.apache.org/jira/browse/SOLR-13003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16694192#comment-16694192 ]
Shawn Heisey commented on SOLR-13003: ------------------------------------- ConcurrentLRUCache code is identical between 7.3.1 and master. So there are no bugs fixed after the version you're running. If the entry object in the cache is not an instance of the Accountable interface, then ConcurrentLRUCache assumes it to be 192 bytes. This might be very small compared to actual cache entries. At 192 bytes, 64MB can handle over 300,000 entries. A DocList does implement Accountable. SolrCache and QueryResultKey do not. I'm betting that the DocList instances are what the cache will be using to calculate its size. In that expanded tree that you shared, the "ramBytes" field seems to be saying that the cache is tracking its size as about 7 megabytes. Which suggests that maybe the code to calculate the cache size is not working right. Should probably come up with a custom solr-core jar where ConcurrentLRUCache has extra logging, and see if we can track down where the problem is. It'll get extremely verbose. > Query Result Cache does not honour maxRamBytes parameter > -------------------------------------------------------- > > Key: SOLR-13003 > URL: https://issues.apache.org/jira/browse/SOLR-13003 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Affects Versions: 7.3.1 > Reporter: Cetra Free > Priority: Major > Attachments: lrucacheexpanded.png, lrucachemaxmb.png, solrconfig.xml > > > When using the maxRamBytes parameter with the queryResultCache directive, we > have seen the retained size of the cache orders of magnitude larger than what > is configured. > Please see attached VisualVM output which shows the retained size is about > 1.5gb, but the maxRamBytes is set to 64mb. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org