Opened 11 years ago

Closed 11 years ago

#4031 closed Bug (invalid)

transmisison-daemon 2.11 memory leak?

Reported by: alexanderwei Owned by: jordan
Priority: High Milestone: None Set
Component: libtransmission Version: 2.11
Severity: Normal Keywords:
Cc:

Description

I put a transmission-daemon in my device, I watched the memory of it's using is more and more large until my device crash, why?

Change History (10)

comment:1 Changed 11 years ago by livings124

Can you supply crash information such as a crash log? Also, it's possible that current versions resole the issue. Can you see if this still happens in 2.21?

comment:2 Changed 11 years ago by alexanderwei

Hi livings124:

when I used 2.11 ,while I start the daemon, I use 'top' cmd to watch

em: 74912K used, 26464K free, 0K shrd, 16K buff, 22736K cached
CPU: 51.8% usr 30.8% sys  0.0% nice  6.9% idle  1.1% io  0.0% irq  9.1% softirq
Load average: 1.47 1.44 1.25
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
11097     1 root     S    38640 38.0 17.7 /usr/bin/transmission-daemon -a *.*.*.* -p 9091 -t -M -u admin -v admin

if you running the daemon process with long time,you can see this %MEM item is always more and more large.

By the way, thank you for your replay quickly.I am testing by 2.21, i'll report lastest results for you.

comment:3 Changed 11 years ago by jordan

Hi Alexander,

  • What platform are you using?
  • If you try this on another platform, does the problem persist?
  • How much memory does Transmission use before it crashes? How much memory does your system have?
  • How large do you have your memory cache set to in settings.json?

comment:4 Changed 11 years ago by alexanderwei

Hi Jordan

  • platform:sigma 8655
  • Before i try in x86, it seems be ok.
  • When device crashed, it used all free memory on system, about 40MB, the process's memory from 3x MB to 7x MB.
  • How large do you have your memory cache set to in settings.json? <==== i don't really understand this.

comment:5 Changed 11 years ago by alexanderwei

I check the seeting.json, the cache size is "cache-size-mb": 2.

comment:6 Changed 11 years ago by alexanderwei

i have tested with 2.21 and libevent2.0, currently the memory leak hasn't happened.

comment:7 Changed 11 years ago by jordan

  • Summary changed from Is there memory leak in transmission-daemon? to transmisison-daemon 2.11 memory leak?

Alexander, I don't know of any memory leaks in 2.11.

libevent2 lets 2.21 use some memory more efficiently than 2.11, and I'm happy that 2.21 is working for you so far... but let's keep watching this, just in case.

If you keep running 2.21 for a few more days, please report back in the ticket how it went.

Also, if you haven't done so, you may want to try building transmission with the "--enable-lightweight" option. That will change Transmission's default settings to use less CPU and memory.

Thanks!

comment:8 Changed 11 years ago by jordan

By the way, alexander, did you build 2.21 yourself, or did you get it prepackaged from somewhere?

comment:9 Changed 11 years ago by alexanderwei

I builded all version with myself. I do a overnight test, it seems be good.I'll continue to watch this issue. thanks a lot.

comment:10 Changed 11 years ago by livings124

  • Resolution set to invalid
  • Status changed from new to closed

Thanks for testing! Please reopen if it reappears.

Note: See TracTickets for help on using tickets.