-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Gitea goes reproducibly "out of memory" on a big repository #13461
Comments
I used docker to build gitea on Synology NAS, and I also found excessive memory usage. I suspect it is a memory leak. As long as you upload a large compressed package or other large files, |
I solved the problem for my scenario, by removing the (too) large files from my repository, basically as described here: https://stackoverflow.com/a/2158271 as I'm the only one working on this repo, it wasn't a big deal to rewrite the git history. so this at least brings my setup to a state, in which I can work with this repository in gitea, again 🙂 |
There's an associated bug in go-git which is responsible for this. Essentially there are a number of incorrect assumptions about the suitability of reading objects and pack indices directly in to the memory that go-git makes which may require significant reconsideration. |
@zeripath |
should be closed by #13673 |
Linux docker_gitea 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 Linux
)[x]
):Description
I have a repository where I added quite some PDFs over the time, making it's size up to ~200MB.
recently I also added some bigger ZIPs in there, making it's current size about ~1000MB.
since then I'm experiencing recurring "out of memory" crashes when accessing this repository.
most of the time when I'm trying to access one of its markdown pages in the web interface.
the logs from above were taken from a crash that happened immediately after pushing some additional ZIP files.
I know I shouldn't add such big files to a git repo and rather use LFS for that (which I did not try yet).
anyway, is there anything I can do now?
update:
now it seems to crash every time after I push anything to this repository.
when I look at the container memory via
docker stats
I see the memory being in a normal range, also while pushing.however, immediately after the push is done, the memory increases within seconds and brings down gitea.
The text was updated successfully, but these errors were encountered: