Bug 310928

Summary: Suspected memory leak
Product: [Applications] ktorrent Reporter: Jedd <bko>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: CONFIRMED ---    
Severity: normal CC: alstandiford, degenkolb, guillere, kdebugs, kdebugs
Priority: NOR    
Version First Reported In: 4.3.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of ktorrent with top showing memory consumption
Screenshot of htop showing memory consumption.

Description Jedd 2012-11-30 13:55:03 UTC
Created attachment 75545 [details]
Screenshot of ktorrent with top showing memory consumption

Using version 4.2.1-1 on Debian unstable 64-bit.

Please refer screen grab of top & ktorrent at http://i.imgur.com/W3G2B.png (also attached to this report). 

~10GB memory in use by ktorrent after about 1 day uptime - torrents shown are representative of previous 24 hours activity.  Configuration changes made to ktorrent are minimal (ie. no whacky massive bumping of connection #'s etc).

On a restart of ktorrent, process reports usage of 623M / 69M for virt & resident memory respectively.
Comment 1 Abby 2013-04-22 20:45:45 UTC
I have a similar problem with ktorrent 4.3.1 on my Gentoo box.

Looking at htop periodically, ktorrent will use more and more memory over time. Currently, at about five days uptime, it is using 1 GB of RAM. After a restart, ktorrent will use 33 MB of RAM, but it'll gradually rise over time again.
Comment 2 Abby 2013-04-22 20:46:50 UTC
Created attachment 79385 [details]
Screenshot of htop showing memory consumption.
Comment 3 Andrey 2013-12-24 01:29:13 UTC
Confirm this bug with ktorrent 4.3.1 (Gentoo Linux, amd64).

After 1 day uptime ktorrent use 1.5 Gb RAM (it upload about 130 Gb and download 7 Gb). After restart it usage 1277M VIRT and 233M RES.

What additional info is needing?
Comment 4 kdebugs 2014-08-24 11:54:35 UTC
Definitely leaks memory.  Version 4.3.1 (KDE 4.13.3) on Kubuntu 14.04.
Comment 5 Guillermo Reisch 2014-09-27 03:34:45 UTC
ii  ktorrent                                                    4.3.1-2      
ii  kde-runtime                                                 4:4.13.3-1

USER      PR  NI    VIRT    RES    SHR %MEM S  %CPU     TIME+ COMMAND   SWAP        USED
guille    20   0 1291380 377148  18440 18,2 R  59,2 562:19.79 ktorrent        462588    840100

guille@goku:~$ free -m
                    total       used       free     shared    buffers     cached
Mem:          2023       1763        260         90         37        435
-/+ buffers/cache:       1290        733
Swap:         1027        925        101

guille@goku:~$ uname -a
Linux goku 3.14-2-686-pae #1 SMP Debian 3.14.13-2 (2014-07-24) i686 GNU/Linux
Comment 6 Christian Degenkolb 2014-11-15 18:12:20 UTC
*** This bug has been confirmed by popular vote. ***