Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak happened on qBEE v5.0.x.10 #617

Open
VK3002 opened this issue Oct 26, 2024 · 31 comments
Open

Memory leak happened on qBEE v5.0.x.10 #617

VK3002 opened this issue Oct 26, 2024 · 31 comments

Comments

@VK3002
Copy link

VK3002 commented Oct 26, 2024

qBittorrent & operating system versions

qBittorrent-Enhanced-Edition: v5.0.0.10 x64
OS: Windows 10 22H2 x86_64

What is the problem?

Memory leak happened after I upgraded qBittorrent-Enhanced-Edition to v5.0.0.10 from v4.6.7.10 on my PC (Windows 10 22H2) and it would occupy all the memory (32G) within 10 minutes. I didn't see obvious memory leak problem on v4.6.7.10 or older versions, they just worked smoothly.
Restarting the programme / rebooting the system didn't help.

Steps to reproduce

Unknown, as mentioned above. Or you ou can ask me to test it.

Additional context

No response

Log(s) & preferences file(s)

I don't know what log might be useful for solving memory leak issues. Just let me know if devs need any log.

@wty2019wty
Copy link

me too
6)~AU6 7590RCVOZ{T97H`2

qBittorrent Enhanced Edition v5.0.0.10 (64-bit)
OS: win10 pro workstations 22h2 x64

PeerBanHelper was used

@leonsu-l
Copy link

确实有这个问题,我这更严重,10s左右能吃满20gb
404349fce6e7a1ddbfc6d47ee1659acf

@CocoaTakasaki
Copy link

image
qBittorrent Enhanced Edition v5.0.0.10 (64-bit)
OS: win11 24h2
PeerBanHelper was used
And often unresponsive, lagging.And there have been no uploads or downloads in the past few days. I think the qbittorrent standard version may have these problems after v5.0

@c0re100
Copy link
Owner

c0re100 commented Oct 27, 2024

Don't know how to reproduce...

From my test, it's still 1GB RAM usage after half an hour.
Windows 10
Disk cache: 1024MB
File pool: 4000
Seeding: 20 (around 20GB)
image

Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

@Juhao73692
Copy link

Severe memory leak also occurs on my device(Mac mini, M2, 8G ram). It can consume over 30GB of ram.
After updating to v5.0.0.10, the memory seems to occur more often, even every time I startup qb. Now I can’t even use it, and have to downgrade to previous version.

@Wind-stormger
Copy link

qbittorrent#21502

@shbumc
Copy link

shbumc commented Oct 29, 2024

I have this happen with my Mac Mini M2 with 24GB RAM with the latest OS and latest qBit as well. The program becomes unresponsive and has to force quit.

@c0re100
Copy link
Owner

c0re100 commented Oct 29, 2024

I wonder...what libtorrent version you guys using?
libtorrent 1.2 or 2.0?

@KevinMX
Copy link

KevinMX commented Oct 30, 2024

5.0.0.10 + lt 1.2 via superng6/qbittorrentee:latest on TrueNAS SCALE 24.10.0, w/memory limit to 4096M on host side, and host network enabled
image

Observing frequent OOMs / memleaks causing qBEE container to restart

image

With the help of htop I also found out that at least one core is being utilized to 100% all the time. Something's going wrong here.

Probably related:

qbittorrent#21710

@c0re100
Copy link
Owner

c0re100 commented Oct 30, 2024

5.0.0.10 + lt 1.2 via superng6/qbittorrentee:latest on TrueNAS SCALE 24.10.0, w/memory limit to 4096M on host side, and host network enabled image

Observing frequent OOMs / memleaks causing qBEE container to restart

image

With the help of htop I also found out that at least one core is being utilized to 100% all the time. Something's going wrong here.

Probably related:

qbittorrent#21710

This issue is related 2.0
but enhanced is using lt 1.2, so.........

@shbumc
Copy link

shbumc commented Oct 30, 2024

I wonder...what libtorrent version you guys using? libtorrent 1.2 or 2.0?

I tried both versions, same problems.

@1134451886
Copy link

image
The software is stuck in a dead state and the memory usage continues to rise

@bai0012
Copy link

bai0012 commented Nov 1, 2024

Me too
image

@mayziran
Copy link

mayziran commented Nov 6, 2024

做种多了就这样,只能把bt的保种都停了,其实也就做了十几个种

@fgr178707
Copy link

版本退回吧 退回到 v4.6.7.10
Return to version Return to v4.6.7.10

@Rirmach
Copy link

Rirmach commented Nov 9, 2024

Maybe also happens with nox version?
image

@luzpaz
Copy link

luzpaz commented Nov 14, 2024

@c0re100
Copy link
Owner

c0re100 commented Nov 14, 2024

Upstream fixed in 5.0.1

I don't think so...
Enhanced is based on qbittorrent#21679, close to 5.0.1
9104351
A backport commit included Free resources allocated by web session once it is destructed fix.

@catsimple
Copy link

So annoying. Every time I start my container and it keeps using memory until it crashes. Reverting to 4.6.7.10 fixes the problem.

@c0re100 c0re100 changed the title Memory leak happened on qBEE v5.0.0.10 Memory leak happened on qBEE v5.0.x.10 Nov 19, 2024
@c0re100
Copy link
Owner

c0re100 commented Nov 20, 2024

Don't know how to reproduce...

From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) image

Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce...
So I need you guys's qBittorrent.ini config file for testing.
Where does qBittorrent save its settings?
post it here is ok.
Remember to use ``` quoting code markdown.

If you're Linux user, you may try to use valgrind.
valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent
I hope it can catch some call stack (memory leak?) or some useful info.

@fgr178707
Copy link

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) image
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's qBittorrent.ini config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.

If you're Linux user, you may try to use valgrind. valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent I hope it can catch some call stack (memory leak?) or some useful info.

My file is too long to paste, so I'm sending it as a file as follows.
github doesn't support .ini, I'll add the extension .txt

qBittorrent.ini.txt Desensitized information

The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think.
The memory footprint rises little by little until the entire memory fills up or the software crashes.

@c0re100
Copy link
Owner

c0re100 commented Nov 21, 2024

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) image
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's qBittorrent.ini config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.
If you're Linux user, you may try to use valgrind. valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent I hope it can catch some call stack (memory leak?) or some useful info.

My file is too long to paste, so I'm sending it as a file as follows. github doesn't support .ini, I'll add the extension .txt

qBittorrent.ini.txt Desensitized information

The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think. The memory footprint rises little by little until the entire memory fills up or the software crashes.

Can you try to set disk cache to 1024MB?
I see your cache setting is auto (that's mean unlimited)

@fgr178707
Copy link

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) 图像
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.
If you're Linux user, you may try to use valgrind. I hope it can catch some call stack (memory leak?) or some useful info.qBittorrent.ini``valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent

My file is too long to paste, so I'm sending it as a file as follows. github doesn't support .ini, I'll add the extension .txt
qBittorrent.ini.txt Desensitized information
The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think. The memory footprint rises little by little until the entire memory fills up or the software crashes.

Can you try to set disk cache to 1024MB? I see your cache setting is auto (that's mean unlimited)

I'm afraid I can't set the cache to 1024 with my mechanical hard disk.

@c0re100
Copy link
Owner

c0re100 commented Nov 21, 2024

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) 图像
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.
If you're Linux user, you may try to use valgrind. I hope it can catch some call stack (memory leak?) or some useful info. qBittorrent.inivalgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent ``

My file is too long to paste, so I'm sending it as a file as follows. github doesn't support .ini, I'll add the extension .txt
qBittorrent.ini.txt Desensitized information
The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think. The memory footprint rises little by little until the entire memory fills up or the software crashes.

Can you try to set disk cache to 1024MB? I see your cache setting is auto (that's mean unlimited)

I'm afraid I can't set the cache to 1024 with my mechanical hard disk.

It's RAM cache.

@fgr178707
Copy link

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) image
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's qBittorrent.ini config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.
If you're Linux user, you may try to use valgrind. valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent I hope it can catch some call stack (memory leak?) or some useful info.

My file is too long to paste, so I'm sending it as a file as follows. github doesn't support .ini, I'll add the extension .txt
qBittorrent.ini.txt Desensitized information
The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think. The memory footprint rises little by little until the entire memory fills up or the software crashes.

Can you try to set disk cache to 1024MB? I see your cache setting is auto (that's mean unlimited)

May I ask how to change the disk cache?
I'm using a regular home mechanical hard drive.

@c0re100
Copy link
Owner

c0re100 commented Nov 21, 2024

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) image
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's qBittorrent.ini config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.
If you're Linux user, you may try to use valgrind. valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent I hope it can catch some call stack (memory leak?) or some useful info.

My file is too long to paste, so I'm sending it as a file as follows. github doesn't support .ini, I'll add the extension .txt
qBittorrent.ini.txt Desensitized information
The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think. The memory footprint rises little by little until the entire memory fills up or the software crashes.

Can you try to set disk cache to 1024MB? I see your cache setting is auto (that's mean unlimited)

May I ask how to change the disk cache? I'm using a regular home mechanical hard drive.

qbt setting
image

@fgr178707
Copy link

Don't know how to reproduce...
From my test, it's still 1GB RAM usage after half an hour. Windows 10 Disk cache: 1024MB File pool: 4000 Seeding: 20 (around 20GB) image
Maybe I need to try on Windows 11 VM or use PeerBanHelper to test...

I tried with 40 torrents (~150GB) on local again, but still can't reproduce... So I need you guys's qBittorrent.ini config file for testing. Where does qBittorrent save its settings? post it here is ok. Remember to use ``` quoting code markdown.
If you're Linux user, you may try to use valgrind. valgrind --tool=massif --massif-out-file=qb_massif.mass qbittorrent I hope it can catch some call stack (memory leak?) or some useful info.

My file is too long to paste, so I'm sending it as a file as follows. github doesn't support .ini, I'll add the extension .txt
qBittorrent.ini.txt Desensitized information
The number of seeds I've made is 105, and the files of all the seeds are 47 gigabytes, I think. The memory footprint rises little by little until the entire memory fills up or the software crashes.

Can you try to set disk cache to 1024MB? I see your cache setting is auto (that's mean unlimited)

May I ask how to change the disk cache? I'm using a regular home mechanical hard drive.

qbt setting image

I set it to 1024, but sometimes the memory is still 3000, and it's a little bit better. I get a white screen, and it's fine again in about 5-15 seconds.
And then the white screen goes up from 500, and so on and so forth.
image

@fgr178707
Copy link

@c0re100 Let me ask if the latest version v5.0.3.10 fixes the memory overflow issue?

@c0re100
Copy link
Owner

c0re100 commented Dec 21, 2024

@c0re100 Let me ask if the latest version v5.0.3.10 fixes the memory overflow issue?

I don't know but you can try.
Possibly, no.

@fgr178707
Copy link

@c0re100 Let me ask if the latest version v5.0.3.10 fixes the memory overflow issue?

I don't know but you can try. Possibly, no.

I tried it. I updated it this morning. It didn't blow up the memory.
Disk cache. I set it to zero, too.
image

@Juhao73692
Copy link

I've tried many methods including modifying the disk cache, but none helps.
The only way to avoid memory leak I've found is to lower down the number of active seeds.
I used to have ~200 seeds active (~1TB), and qb can hardly startup.
And now I've lowered down the seeding limit to 50x/43200min, and the memory leak seems to have disappeared.
Hope this would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests