470,636 Members | 1,447 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Memory leak in python

Hi,

using python2.2.2

I am seeing that the python application is very slowly
eating up the memory. i need help to indentify it.

It start with 11MB and keeps growing by 1 MB around
every 30mins.

#top | grep python
10351 root 15 0 26584 25M 3896 S 0.5 0.8
46:05 1 python2
10351 root 15 0 26592 25M 3896 S 3.5 0.8
46:06 1 python2
10351 root 15 0 26596 25M 3896 S 30.9 0.8
46:07 0 python2
10351 root 15 0 26608 25M 3896 S 73.0 0.8
46:11 0 python2
10351 root 15 0 26612 25M 3896 S 73.2 0.8
46:15 0 python2
10351 root 15 0 26616 25M 3896 S 78.6 0.8
46:18 1 python2
10351 root 15 0 26620 25M 3896 S 78.4 0.8
46:22 1 python2
10351 root 15 0 26620 25M 3896 S 77.4 0.8
46:26 1 python2
10351 root 15 0 26620 25M 3896 S 73.2 0.8
46:30 1 python2
10351 root 15 0 26620 25M 3896 S 65.8 0.8
46:33 1 python2
10351 root 15 0 26620 25M 3896 S 43.3 0.8
46:35 1 python2
10351 root 15 0 26620 25M 3896 S 53.8 0.8
46:38 1 python2
10351 root 15 0 26620 25M 3896 S 26.3 0.8
46:39 1 python2
10351 root 15 0 26636 26M 3896 S 33.5 0.8
46:41 1 python2
10351 root 15 0 26640 26M 3896 S 25.7 0.8
46:42 1 python2
10351 root 15 0 26656 26M 3896 S 23.9 0.8
46:44 1 python2
10351 root 15 0 26656 26M 3896 S 11.7 0.8
46:44 1 python2
10351 root 15 0 26660 26M 3896 S 10.7 0.8
46:45 1 python2
10351 root 15 0 26668 26M 3896 S 3.7 0.8
46:45 1 python2
10351 root 15 0 26668 26M 3896 S 1.7 0.8
46:45 1 python2
10351 root 15 0 26668 26M 3896 S 0.7 0.8
46:45 1 python2
10351 root 15 0 26668 26M 3896 S 0.3 0.8
46:45 1 python2
10351 root 15 0 26684 26M 3896 S 4.5 0.8
46:45 1 python2
10351 root 15 0 26688 26M 3896 S 2.1 0.8
46:45 1 python2

let me know how to approch this.
gc.collect - does not collect anything.
Thanks,
Abhishek

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Jul 19 '05 #1
1 1124
Abhishek S <ab*********@yahoo.com> wrote:
I am seeing that the python application is very slowly
eating up the memory. i need help to indentify it.

It start with 11MB and keeps growing by 1 MB around
every 30mins.

#top | grep python
10351 root 15 0 26584 25M 3896 S 0.5 0.8 46:05 1 python2 [snip] 10351 root 15 0 26688 26M 3896 S 2.1 0.8 46:45 1 python2
Thats not a lot of leak - have you done that over a longer time
period?
let me know how to approch this. gc.collect - does not collect
anything.


Are there any objects in gc.garbage?

Are you writing objects with __del__ methods? If so then that is your
problem probably.

Have you written any extension modules in C?

--
Nick Craig-Wood <ni**@craig-wood.com> -- http://www.craig-wood.com/nick
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Adam Deutsch | last post: by
10 posts views Thread by Debian User | last post: by
3 posts views Thread by Guy | last post: by
2 posts views Thread by Elbert Lev | last post: by
10 posts views Thread by Andrew Trevorrow | last post: by
18 posts views Thread by diffuser78 | last post: by
3 posts views Thread by crazy420fingers | last post: by
reply views Thread by Gabriel Genellina | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.