Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.0.5
    • Generic
    • None

    Description

      Found a small memory leak on mariadb connection object.

      import resource
      import mariadb as driver
      # import mysql.connector as driver
      from time import sleep
       
      connection_parameters = {
          'host': '10.0.0.2',
          'user': 'me',
          'password': '123123',
          'database': 'test'
      }
       
      while True:
          for i in range(200):
              db = driver.connect(**connection_parameters)
              db.close()
          usage = resource.getrusage(resource.RUSAGE_SELF)
          print(f'Mem: {usage[2]}')
          sleep(1)
      

      Just in a few iterations the memory usage report grows if mariadb is used.

      Attachments

        Activity

          georg Georg Richter added a comment -

          Fixed - rev. 37864dd8311a9cbac5ae77bde653ec15162b7142

          georg Georg Richter added a comment - Fixed - rev. 37864dd8311a9cbac5ae77bde653ec15162b7142
          yrogory Gregory Gygax added a comment -

          1.0.5 does not fix the issue for me. Using the sample script, I can still observe memory usage growing. Using python3.9 on arch linux.

          yrogory Gregory Gygax added a comment - 1.0.5 does not fix the issue for me. Using the sample script, I can still observe memory usage growing. Using python3.9 on arch linux.
          georg Georg Richter added a comment -

          Gregory, unfortunately we added another leak after closing this issue. See CONC-142

          georg Georg Richter added a comment - Gregory, unfortunately we added another leak after closing this issue. See CONC-142

          People

            georg Georg Richter
            lucianobarcaro Luciano Barcaro
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.