#17 [Python bug] WebCleaner process never frees memory

Python upstream
open
Wummel
None
5
2005-10-14
2004-01-01
No

Version: 2.7-0.1 (Debian package)

webcleaner process uses more and more memory over time
until it finally crashes :-((

Discussion

  • Wummel

    Wummel - 2004-01-03
    • assigned_to: nobody --> calvin
     
  • Wummel

    Wummel - 2004-01-03

    Logged In: YES
    user_id=9205

    Do you have psyco installed? I recently disabled psyco
    support, because it is not stable, resulting in segmentation
    faults and perhaps also leaking memory.

     
  • Joerg Delker

    Joerg Delker - 2004-01-03

    Logged In: YES
    user_id=43997

    No psycho installed at all.

     
  • Wummel

    Wummel - 2004-11-11

    Logged In: YES
    user_id=9205

    Just read an interesting article at
    http://evanjones.ca/python-memory.html
    Basically it says Python never releases memory once it is
    allocated :/
    So it more of an upstream issue than with webcleaner, but I
    keep this bug open as a reminder.

     
  • Wummel

    Wummel - 2004-11-11
    • milestone: --> Python upstream
     
  • Wummel

    Wummel - 2005-10-14
    • summary: memory leak --> [Python bug] WebCleaner process never frees memory
     
  • Stage Nex

    Stage Nex - 2006-01-10

    Logged In: YES
    user_id=1095797

    I've patched Python following Evan's advices (patch)
    http://evanjones.ca/python-memory.html

    Anyway, Webcleaner (python) process doesn't release memory
    (as it keeps increasing from 30MB to 72MB in a day).
    I've added garbage collect call inside a timer and the
    situation improved (30MB to 60MB in a day), but still leaks.

    Could you check if there are some circular references in the
    code that could explain this behaviour ?
    Please have a look here:
    http://www.nightmare.com/medusa/memory-leaks.html

    I don't understand the code well enough to be able to change
    anything based on the report of the tools.

    Sincerely,
    Cyril (Keep up the very good work).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks