|
From: Hans A. <Han...@Ph...> - 2002-07-11 10:47:26
|
On Dienstag, 2. Juli 2002 12:58, Michael Ströder wrote: > HI! > > I remember that someone reported memory leaks quite a while ago > and there was no further action. Running some test scripts I can > observe that the python-ldap using process grows quite fast. > > Does anybody have the time to look into this? If yes, please dig > into Modules/LDAPObject.c, functions l_ldap_result() and > l_ldap_search(). > > Ciao, Michael. Michael, I did not have time to check for the mentioned memory leaks (you know, a baby at the age of three weeks simliy eats up all your spare time :-), but I found this in the ldapdns-FAQ (however, I have no idea if it is related...) Q: i think ldapdns has a memory leak! it keeps growing! A: the openldap client libraries seem to "cache" attributes, and on a heavy nameserver it may seem to grow for a while. make sure softlimit is correct, and that you have a backup nameserver. one day, i may write a more low-memory ldap client lib to fix this... [ or i may find a bug in my code... or YOU might. it's possible; especially since i refuse to look at code before 2am... ] Hans -- Han...@Ph... |