Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5373

Lucene42DocValuesProducer.ramBytesUsed is over-estimated

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.6.1
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Lucene42DocValuesProducer.ramBytesUsed uses RamUsageEstimator.sizeOf(this) to return an estimation of the memory usage. One of the issues (there might be other ones) is that this class has a reference to an IndexInput that might link to other data-structures that we wouldn't want to take into account. For example, index inputs of a RAMDirectory all point to the directory itself, so Lucene42DocValuesProducer.ramBytesUsed would return the amount of memory used by the whole directory.

        Attachments

        1. LUCENE-5373.patch
          4 kB
          Adrien Grand
        2. LUCENE-5373.patch
          11 kB
          Adrien Grand
        3. LUCENE-5373.patch
          12 kB
          Adrien Grand
        4. LUCENE-5373.patch
          32 kB
          Adrien Grand

          Activity

            People

            • Assignee:
              jpountz Adrien Grand
              Reporter:
              jpountz Adrien Grand
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: