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

Qbittorent is eating all memory thrown at it. This looks like a memory leak and can't be right #21859

Open
samuellazea opened this issue Nov 16, 2024 · 8 comments

Comments

@samuellazea
Copy link

samuellazea commented Nov 16, 2024

qBittorrent & operating system versions

qBittorrent was built with the following libraries:
Qt: | 6.7.2
Libtorrent: | 2.0.10.0
Boost: | 1.84.0
OpenSSL: | 3.3.2
zlib: | 1.3.1

What is the problem?

I have it as a docker container and what used to be able to work with 1G of memory now I throw even 15G of memory at it and it eats all of the memory and then webui is not reachable anymore and looks like the process is restarting somehow.
I tried to limit the amount of downloads to 10 and tried multiple settings but without any luck. All that I tried it kept on eating it all

Steps to reproduce

  1. Start the container
  2. 1 min later all memory is consumed

Additional context

image
image
image

Log(s) & preferences file(s)

cat qbittorrent_seriale/data/qBittorrent/qBittorrent.conf 
[Application]
FileLogger\Age=1
FileLogger\AgeType=1
FileLogger\Backup=true
FileLogger\DeleteOld=true
FileLogger\Enabled=true
FileLogger\MaxSizeBytes=66560
FileLogger\Path=/config/qBittorrent/logs

[AutoRun]
enabled=false
program=

[BitTorrent]
Session\AddTorrentStopped=false
Session\AlternativeGlobalDLSpeedLimit=0
Session\AlternativeGlobalUPSpeedLimit=0
Session\DefaultSavePath=/tv
Session\ExcludedFileNames=
Session\GlobalMaxSeedingMinutes=14500
Session\IgnoreLimitsOnLAN=true
Session\MaxActiveDownloads=10
Session\MaxActiveTorrents=15
Session\MaxActiveUploads=15
Session\MaxConnections=500
Session\MaxConnectionsPerTorrent=100
Session\MaxUploads=8
Session\MaxUploadsPerTorrent=4
Session\PerformanceWarning=true
Session\Port=32701
Session\QueueingSystemEnabled=true
Session\SSL\Port=20590
Session\ShareLimitAction=Stop
Session\TempPath=/seeding/incomplete
Session\TempPathEnabled=true
Session\uTPRateLimited=false

[Core]
AutoDeleteAddedTorrentFile=Never

[LegalNotice]
Accepted=true

[Meta]
MigrationVersion=8

[Network]
PortForwardingEnabled=false
Proxy\HostnameLookupEnabled=false
Proxy\Profiles\BitTorrent=true
Proxy\Profiles\Misc=true
Proxy\Profiles\RSS=true

[Preferences]
Advanced\RecheckOnCompletion=false
Advanced\trackerPort=9000
Connection\PortRangeMin=6881
Connection\ResolvePeerCountries=true
Connection\UPnP=false
Downloads\SavePath=/downloads/
Downloads\TempPath=/downloads/incomplete/
DynDNS\DomainName=changeme.dyndns.org
DynDNS\Enabled=false
DynDNS\Password=
DynDNS\Service=DynDNS
DynDNS\Username=
General\Locale=en
MailNotification\email=
MailNotification\enabled=false
MailNotification\password=
MailNotification\req_auth=true
MailNotification\req_ssl=false
MailNotification\[email protected]
MailNotification\smtp_server=smtp.changeme.com
MailNotification\username=
WebUI\Address=*
WebUI\AlternativeUIEnabled=false
WebUI\AuthSubnetWhitelist=192.168.200.0/24
WebUI\AuthSubnetWhitelistEnabled=true
WebUI\BanDuration=3600
WebUI\CSRFProtection=false
WebUI\ClickjackingProtection=false
WebUI\CustomHTTPHeaders=
WebUI\CustomHTTPHeadersEnabled=false
WebUI\HTTPS\CertificatePath=
WebUI\HTTPS\Enabled=false
WebUI\HTTPS\KeyPath=
WebUI\HostHeaderValidation=false
WebUI\LocalHostAuth=false
WebUI\MaxAuthenticationFailCount=5
WebUI\Password_PBKDF2="xxxxxx"
WebUI\Port=8086
WebUI\ReverseProxySupportEnabled=false
WebUI\RootFolder=
WebUI\SecureCookie=true
WebUI\ServerDomains=*
WebUI\SessionTimeout=3600
WebUI\TrustedReverseProxiesList=
WebUI\UseUPnP=true
WebUI\Username=something

[RSS]
AutoDownloader\DownloadRepacks=true
AutoDownloader\SmartEpisodeFilter=s(\\d+)e(\\d+), (\\d+)x(\\d+), "(\\d{4}[.\\-]\\d{1,2}[.\\-]\\d{1,2})", "(\\d{1,2}[.\\-]\\d{1,2}[.\\-]\\d{4})"
`

`cat qbittorrent_seriale/data/qBittorrent/watched_folders.json 
{
}
`
@ArcticGems
Copy link

Since you are using Libtorrent 2.0.X, have you tried the advanced option 'Simple pread/pwrite'?

@samuellazea
Copy link
Author

Thanks for the mention. I didn't know about it before but I did try it now. And it's still the same. And yes, I restarted the container :) . It's eating 7G and then crashing and repeat

@muradbu
Copy link

muradbu commented Nov 16, 2024

I just suspected a memory leak as well then came here to see I'm not the only one. I'm running a qbittorrent-nox 5.0.1 instance on Linux with the default 512 MiB physical memory usage limit, only to see memory usage ramp up to above 40 GB.
11-16 at 18 30 41@2x

@HanabishiRecca
Copy link
Contributor

Duplicate of #21502.

@Pentaphon
Copy link

Libtorrent: | 2.0.10.0

@samuellazea Stop using these builds. Use the 1.2.19 builds.

@mustafa-kapadia1483
Copy link

@samuellazea hide the torrent names for obvious reasons. Could land you in trouble

@samuellazea
Copy link
Author

@samuellazea hide the torrent names for obvious reasons. Could land you in trouble

You do have a really good point. Thank you lots :)

@nerdguy1338
Copy link

i had this problem too, qbittorrent eats ram slowly, over a day or so. upgraded to v 5.0.2 app image from v4.7 deb on ubuntu 24, no more ram gobbling!

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

No branches or pull requests

8 participants