Memory leak in python

A

Abhishek S

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
 
N

Nick Craig-Wood

Abhishek S said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top