469,951 Members | 2,485 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

profiling memory usage

Hi,

I am looking for a method to profile memory usage in my python program.
The program provides web service and therefore is intended to run for a
long time. However, the memory usage tends to increase all the time,
until in a day or two the system cannot handle it any more and starts
to do constant swapping. Is there a way to look at which objects or
variables are taking the huge amount of memory space?

Thanks,

Eddie

Oct 5 '06 #1
3 1344
On 5 Oct 2006 16:21:50 -0700, Eddie <ca*******@gmail.comwrote:
Hi,

I am looking for a method to profile memory usage in my python program.
The program provides web service and therefore is intended to run for a
long time. However, the memory usage tends to increase all the time,
until in a day or two the system cannot handle it any more and starts
to do constant swapping. Is there a way to look at which objects or
variables are taking the huge amount of memory space?
Have a look at:
http://www.velocityreviews.com/forum...-profiler.html

--
Remember that time Thotsakan punched Neil Bush in the dick?
Oct 6 '06 #2
The latest Python release 2.5 includes improvements to the memory
manager and *may* work better for you, it all depends on the root cause
of the problem. For more details, see the 5th bullet on this page
<http://docs.python.org/whatsnew/ports.html>.

/Jean Brouwers
Eddie wrote:
Hi,

I am looking for a method to profile memory usage in my python program.
The program provides web service and therefore is intended to run for a
long time. However, the memory usage tends to increase all the time,
until in a day or two the system cannot handle it any more and starts
to do constant swapping. Is there a way to look at which objects or
variables are taking the huge amount of memory space?

Thanks,

Eddie
Oct 6 '06 #3

Hi,

I am looking for a method to profile memory usage in my python program.
The program provides web service and therefore is intended to run for a
long time. However, the memory usage tends to increase all the time,
until in a day or two the system cannot handle it any more and starts
to do constant swapping. Is there a way to look at which objects or
variables are taking the huge amount of memory space?

Thanks,
Oct 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Rune Froysa | last post: by
reply views Thread by Bernd E via DotNetMonster.com | last post: by
2 posts views Thread by Frank Rizzo | last post: by
1 post views Thread by Jon | last post: by
9 posts views Thread by jeungster | last post: by
7 posts views Thread by =?Utf-8?B?RGF2aWQgSm9uZXM=?= vpac org> | last post: by
1 post views Thread by JamesHoward | last post: by
2 posts views Thread by Jaroslaw Szczepankiewicz | last post: by
1 post views Thread by Jean-Paul Calderone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.