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

Memory leaks in KV get operation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 3.2.5, 3.2.6
    • library
    • Debian bullseye, Python 3.9, python-couchbase
    • 1

    Description

      We have problem in our applications with memory consumption after upgrade to python client SDK version 3.2.*. Simple get operation in a while iteration is consuming more and more memory.

      Example code:

      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

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

          Activity

            People

              jared.casey Jared Casey
              petr.zelenka Petr Zelenka
              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