Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-35109

Very high jemalloc memory usage with single doc array index

    XMLWordPrintable

Details

    • Untriaged
    • No

    Description

      This bug is related to MB-34674 where GSI buffer usage was optimized to avoid bloat of memory due to appends in collatejson package. After GSI fix, we observed that indexer heap usage came down but plasma jemalloc usage still showed 19G of usage. Repro steps are below:

      Repro:
      To repro: Create a document that is 1.5MB large. Create an array index with array size over 3000. Resulting size of all entries should be in the tune of 3.5GB for single document. large_covering_field itself (below) should be around 1.5MB.
      CREATE INDEX idx ON default(ALL array, large_covering_field)

      Attachments

        1. after.png
          after.png
          326 kB
        2. before.png
          before.png
          325 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              prathibha Prathibha Bisarahalli (Inactive)
              prathibha Prathibha Bisarahalli (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty