← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 518972] Re: Memoryleak in python module?

 

Fixed in version 2.5.0.

** Changed in: adchpp
       Status: Fix Committed => Fix Released

-- 
Memoryleak in python module?
https://bugs.launchpad.net/bugs/518972
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.

Status in ADCH++: Fix Released

Bug description:
I have been doing some testing with the adchpp python module (for adchppgui). I noticed that after a while the memory usage started rising rapidly. I had about 500 users in the hub and got up to 450mb of memory usage about an hour after start.
I thought it might be someting with my code at first, so tested without handeling any commands, by returning ok as soon as i got a command. This did not help, still had memory increasing. 

I used this method to see increasing reference counts: http://www.lshift.net/blog/2008/11/14/tracing-python-memory-leaks
These are 2 examples of the output (removed some stuff that wasn't increasing)

Reference counts by name:
------------------------------
510 users in hub
dict              	 252297
tuple              	162306
Entity             	121184
AdcCommand       118484
Bot                	3218
------------------------------
514 users in hub
dict               312796
tuple              193050
Entity             151088
AdcCommand         148219
Bot                4058
------------------------------