On Tue, Feb 24, 2009 at 4:44 AM, Chris Miles <[email protected]> wrote:
> On Feb 22, 6:08 am, Allen Bierbaum <[email protected]> wrote:
>> The python process.  The number of objects seems to remain fairly
>> controlled.  But the amount of resident memory used by the python
>> process does not decrease.  I had expected that by calling
>> gc.collect(2) python would reclaim any objects that could be freed and
>> free all memory associated with them, thus decreasing the consumed
>> memory.  Maybe this is an invalid assumption.  Do you know any way to
>> ask python to shrink it's process size (ie. clear unused memory that
>> has been freed but evidently not given back to the OS)?
>
> Python 2.5 and later will free up garbage collected memory, handing it
> back to the system.  Previous versions of Python would never free up
> memory (hence never shrink in size).
>
> Are you using Python 2.4?

I am using Python 2.5.  But now that I understand the issue better I
have come up with a workaround.  The biggest issue was that I didn't
understand what I should be seeing as far as memory usage.

Thanks to everyone for the help.

-Allen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to