Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.9.56
    • Fix Version/s: 0.9.57
    • Component/s: DBAPI 2.0
    • Labels:
      None

      Description

      Wnen opening and closing a cursor in a loop, the size of used memory increases constantly.

      How to repeat:

      import mariadb
      import resource
       
      i=0
      end=10000
      i=0
      connection= mariadb.connect(user="georg")
      last_used_mem= resource.getrusage(resource.RUSAGE_SELF).ru_maxrss
       
      while i < end:
           cursor=connection.cursor()
           cursor.close()
           diff_mem= resource.getrusage(resource.RUSAGE_SELF).ru_maxrss - last_used_mem
           if diff_mem > 0:
              print("leak: %s" % diff_mem)
              last_used_mem+= diff_mem
      conn.close()
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration