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
OOM error on small repo when cloning/pull #276
Comments
Can you share the repo? |
Which version of Dulwich are you using? There have been some fixes recently that improve the strategy for delta resolution - significantly improving memory usage on certain kinds of repository. |
@jonashaag It's a private repository. |
Do you use ctags (in klaus)? |
No, I don't think so. How would I know if I do? |
I'm using version 0.20.35, which seems to be the latest version. |
Maybe you can send the private repo via email so I can check it out |
Thanks, will have a look tomorrow. |
Correction: this is happening on all but a few of my repos. |
@jelmer can you look into this? I'm not sure what's going on here. It seems to hang inside |
@jonashaag So you can recreate this issue with the repo I sent? Does this happen with any of your repos? |
Yes it happens with my repos as well. I wonder if it has something to do with a recent Git release but an older version of Git had the same issue. What’s the OS you run git on? I tried macOS only. |
This is with Arch Linux. |
Where is the code for that stored? Maybe I can take a look at it? (Also, maybe you should think of adding an option to use git-http-backend instead). |
The memory leak is in the git-remote-http code |
Wouldn't that indicate somethings wrong on the server's side? |
Yes, and/or in Git. |
FWIW a number of memory improvements have gone into Dulwich' server gode recently. |
Ok, I'll try it out. |
The problem seems to remain (dulwich 0.20.45). |
@jelmer any idea what's going on here? I'm facing the same problem now on macOS with the latest Dulwich and Git. |
It starts to happen with Git 2.28. 2.27 is fine. |
@jelmer note that the memory leak is in the client |
Can you reproduce this with git on the server side? |
It works fine with Anything else I should check? |
I reported a Git bug. |
@jelmer FYI see discussion here. Bug in Git that is about to be fixed. https://lore.kernel.org/git/39035D34-8548-44B0-BBBB-5C36B3876C4A@lophus.org/ |
Interesting - thanks for the link & background. |
I have a very small repo (~1Mb), yet when cloning, git-remote-https gets killed because the system runs out of memory. It's only this repo, all others work fine.
The text was updated successfully, but these errors were encountered: