Answer the question
In order to leave comments, you need to log in
Fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes), how to fix git?
There is a repository with site files on the ubuntu server, I'm trying to work with it. If I do pull or push , it gives an error
fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)
which I just didn’t do with it ... and rules
git config --force --all
[core]
packedGitLimit = 128m
packedGitWindowSize = 128m
[pack]
deltaCacheSize = 128m
packSizeLimit = 128m
windowMemory = 128m
git config --global pack.threads 1
git config --global pack.windowMemory 256m
I wrote to support, they only suggested switching to a more expensive acc.
After that, I experimented a bit. I initialized git in a folder with 1 file and tried to push it to bitbucket and gave the same error, that's the thing, when I first went to the server, did I somehow transfer files here from LAN? So everything worked, but now a bug ..
Who has any guesses? In my opinion, the matter is clearly not in memory :(
ps I tried to demolish git and reinstall it, it didn’t help, although it is possible that there were some config files left there ... I’m not even sure I
even freed up memory on the server, 9% of 512mb is occupied, the size of the repository is ~ 15mb
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question