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

BeegoMaxMemoryBytes default set 128GB can be used to crash all Harbor instances. #21056

Open
Vad1mo opened this issue Oct 17, 2024 · 0 comments
Labels

Comments

@Vad1mo
Copy link
Member

Vad1mo commented Oct 17, 2024

Expected behavior and actual behavior:

The PR #19578 increased Beego Max memory to 128 GiB allowing, so uploads up to 128 GiB will be stored in memory.

This can lead to instance crashes,

Usually an uploaded file is stored in the system memory, but if the file size is larger than the memory size limitation in the configuration file, the file will be stored in a temporary file. The default memory size is 64M but can be changed using (bit shift):

Steps to reproduce the problem:

Versions:
Please specify the versions of following systems.

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

No branches or pull requests

1 participant