Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8066

High Heap Consumption due to high number of SSTableReader

    XMLWordPrintableJSON

    Details

    • Severity:
      Normal

      Description

      Given a workload with quite a lot of reads, I recently encountered high heap memory consumption. Given 2GB of Heap, it appears I have 750.000+ tasks in SSTableReader.syncExecutor, consuming more than 1.2GB. These tasks have type SSTableReader$5, which I guess corresponds to :

      readMeterSyncFuture = syncExecutor.scheduleAtFixedRate(new Runnable()
      {
      public void run()
      {
      if (!isCompacted.get())
      {
      meterSyncThrottle.acquire();
      SystemKeyspace.persistSSTableReadMeter(desc.ksname, desc.cfname, desc.generation, readMeter);
      }
      }
      }, 1, 5, TimeUnit.MINUTES);
      

      I do not have have to the environment right now, but I could provide a threaddump later if necessary.

        Attachments

        1. 8066.txt
          9 kB
          T Jake Luciani

          Activity

            People

            • Assignee:
              tjake T Jake Luciani
              Reporter:
              blasd Benoit Lacelle
              Authors:
              T Jake Luciani
              Reviewers:
              Jason Brown
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: