Thanks Oleg, Dan and Markus!!!, and I could finaly understand the issue. The code by Dan helps me.
On Fri, 15 Sep 2006 13:35:25 +0300 Dan Pascu <[EMAIL PROTECTED]> wrote: > If you want to see if you have memory leaks try to run your code in an > infinite loop: > > while 1: > obj_list = [] > for i in xrange( 1000 ): > obj = SomeObject( parameters ... ) > obj_list.append( obj ) # memory grows > > for obj in obj_list: > obj.expire() # clear cache > > del obj_list > > and monitor memory usage. If it only increases once while the first pool > of 1000 objects is created, but then stays constant you are fine. I means > that the memory is not returned to the OS but reused for the next bunch > of 1000 objects and so on. If it constantly grows you have a mem leak. The memory usage doesn't grow up forever! I can understand Oleg and Dan's claim that "the memory is freed, but python doesn't return to OS." Thank you very much! ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss