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

Ability to restrict memory taken by the cache #21

Open
Fijxu opened this issue Dec 17, 2024 · 4 comments
Open

Ability to restrict memory taken by the cache #21

Fijxu opened this issue Dec 17, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Fijxu
Copy link
Contributor

Fijxu commented Dec 17, 2024

May be caused by the token generation job.

2024-12-17_01-04

@unixfox unixfox added the enhancement New feature or request label Dec 17, 2024
@unixfox unixfox changed the title Unknown memory leak Ability to restrict memory taken by the cache Dec 17, 2024
@unixfox
Copy link
Member

unixfox commented Dec 17, 2024

Invidious companion will cache all the video data and this can grow the memory exponentially. I can look into putting some limits in the cache.

@Fijxu
Copy link
Contributor Author

Fijxu commented Dec 18, 2024

I disabled cache on all my servers, it still uses a lot of RAM after a few hours
Screenshot_20241218_140324

@unixfox
Copy link
Member

unixfox commented Dec 18, 2024

What did you disable exactly? Does the RAM usage stabilize or it keeps rising?

@Fijxu
Copy link
Contributor Author

Fijxu commented Dec 18, 2024

What did you disable exactly? Does the RAM usage stabilize or it keeps rising?

I disabled [cache].enabled (set to false) in local.toml. The RAM keeps rising over time as it can be seen on the RES column. 2.2GB

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

No branches or pull requests

2 participants