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

Memory leak even if server is idle

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.0-beta
    • 2.0-beta
    • couchbase-bucket
    • Security Level: Public
    • 10.3.121.190: Ubuntu 11.04, 4 virtual cores, 4GB RAM

    Description

      Steps to reproduce:
      1. Install single node Couchbase server 2.0.0 (http://builds.hq.northscale.net/latestbuilds/couchbase-server-enterprise_x86_64_2.0.0-1313-rel.deb).
      2. Create default bucket (type: couchbase, ram quota 3 GB, no replica).
      3. Enjoy growing memory consumption (no items, no views, no ops, no active connections).

      Script to measure leak:
      #!/bin/bash

      1. First snapshot with memory stats
        /opt/couchbase/bin/cbstats localhost:11210 memory > snapshot1.log
      1. Sleep 2 minutes
        sleep 120
      1. Second snapshot
        /opt/couchbase/bin/cbstats localhost:11210 memory > snapshot2.log
      1. Difference
        diff snapshot1.log snapshot2.log > diff.log

      Sample diff.log:
      < mem_used: 31510984
      > mem_used: 32804232

      It equals to 37 MB/hour (~900 MB/day).

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            pavelpaulau Pavel Paulau (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty