Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 0.9.56
    • 0.9.57
    • DBAPI 2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.