Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-1282

Memory leak in kv operations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.3
    • 3.2.6
    • library
    • None
    • 1

    Description

      https://forums.couchbase.com/t/couchbase-python-sdk-memory-leaking-for-simple-kv-get-operation/33069/

      I was able to reproduce the issue using the script provided by the user. I've attached a plot created by mprof that shows the constant increase of memory usage.

      from couchbase.cluster import Cluster, ClusterOptions
      from couchbase.auth import PasswordAuthenticator
      cluster = Cluster('couchbase://some-cluster?enable_tracing=false', ClusterOptions(PasswordAuthenticator('xxx', 'xxx')))
       
      cb = cluster.bucket('xxx')
      cb_coll_default = cb.default_collection()
      cb_coll_default.upsert(str(123), '123')
      for i in range(10000000):
        try:
          cb_coll_default.get(str(123))
        except Exception:
          pass
      

      Attachments

        Issue Links

          Activity

            People

              jared.casey Jared Casey
              jake.rawsthorne Jake Rawsthorne
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty