Skip to content

Memory leak of webui #23806

@katyurua

Description

@katyurua

qBittorrent & operating system versions

OS: Windows 10 x64 22H2

Qt: | 6.9.3 -- | -- Libtorrent: | 1.2.20.0 Boost: | 1.86.0 OpenSSL: | 3.6.0 zlib: | 1.3.1

What is the problem?

When open webui and leave it in browser, memory keeps increasing until all memory is exhausted , then crash.

Steps to reproduce

Run 2 qBittorrent instances on Windows 10, portable mode, different port.
open both webui from another computer, and leave it in browser, do not close it.(chrome/edge)
The memory usage continuously increases every few seconds, from hundreds MB to 50GB+.

Eventually it exceeds available memory, causing system instability and crash.

Additional context

I thought it was a cache issue, then I did a lot of test
turns out it is webui issue

it maybe a problem with cookie or SID, i

Now I use nginx or caddy reverse proxy to avoid this,
access webui with different domain(qb1.lan qb2.lan)
24 hours testing, no memory leak,1G max memory usage,
but this problem is still there.

Log(s) & preferences file(s)

qBittorrent.ini

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebUIWebUI-related issues/changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions