Menu

memory leak?

Help
2009-08-17
2012-09-19
  • Bjoern Thorwirth

    Hi

    I've the following problem:

    When i do a select on a big table like this:

    import MySQLdb
    db=MySQLdb.connect(db='pdb',user='pdbase',passwd='xxxx',use_unicode=False)
    curs=db.cursor()
    curs.execute('SELECT * FROM ATOM_SITE;')
    erg=curs.fetchall()
    curs.close()
    del curs
    del erg
    db.close()
    del db
    The python interpreter uses after this select about 600 MB Memory and stays at this size. Shouldn't the memory been freed? I tried this with and without unicode. if i do this a second time the interpreter grows to~900MB third time it stays there. whats happening? shouldn't the memory br freed?

    regards,

    bjoern Thorwirth

     
    • Bjoern Thorwirth

      python-2.6 MySQLdb 1.2.3c1 and svn

       
    • Bjoern Thorwirth

      sorry ... interpreter size after 4 executions beginning at line cur=db.cursor() leads to 1.5 GB Interpreter

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.