471,075 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

Re: python memory leak only in x86 64 linux

En Wed, 16 Apr 2008 13:10:42 -0300, rk*****@gmail.com <rk*****@gmail.comescribió:
This is the code that is causing memory leak in 64 bit python [but not
in 32 bit python].. is something wrong in the code?

[... Python code using the datetime module ...]
>the memory usage of a python app keeps growing in a x86 64 linux
continuously, whereas in 32 bit linux this is not the case. Python
version in both 32 bit and 64 bit linux - 2.6.24.4-64.fc8
Python 2.5.1 (r251:54863, Oct 30 2007, 13:45:26)

i isolated the memory leak problem to a function that uses datetime
module extensively. i use datetime.datetime.strptime,
datetime.timedelta, datetime.datetime.now methods...
In principle pure Python code should have no memory leaks - if there are, they're on Python itself.
Maybe this is an allocation problem, not an actual leak; if you can write a program that reproduces the problem, post a bug at http://bugs.python.org
--
Gabriel Genellina

Jun 27 '08 #1
0 1126

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jerald | last post: by
34 posts views Thread by Ville Voipio | last post: by
reply views Thread by Robby Dermody | last post: by
10 posts views Thread by Andrew Trevorrow | last post: by
18 posts views Thread by diffuser78 | last post: by
reply views Thread by Kurt B. Kaiser | last post: by
reply views Thread by rkmr.em | last post: by
reply views Thread by rkmr.em | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.