Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3486

The memory size of Solr caches should be configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • search
    • None

    Description

      It is currently possible to configure the sizes of Solr caches based on the number of entries of the cache. The problem is that the memory size of cached values may vary a lot over time (depending on IndexReader.maxDoc and the queries that are run) although the JVM heap size does not.

      Having a configurable max size in bytes would also help optimize cache utilization, making it possible to store more values provided that they have a small memory footprint.

      Attachments

        1. LFUMap.java
          5 kB
          Adrien Grand
        2. SOLR-3486.patch
          13 kB
          Adrien Grand
        3. SOLR-3486.patch
          12 kB
          Adrien Grand

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jpountz Adrien Grand
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: