I'm trying to use a low memory, 512MB, host for my reote git repo. The
problem is the system is in an OpenVZ container and only has ~ 390MB
free on average. There is no way for me to create any swap space and I
can't change the overcommit sysctl on the system. There are no large
files in my repo and it is blowing up trying to do a 4.14 MiB push! I
would think that 390MB free memory would be more than sufficient for
troyh@myhost:~$ git push
Counting objects: 149, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (54/54), done.
Writing objects: 100% (75/75), 4.14 MiB | 71 KiB/s, done.
Total 75 (delta 49), reused 41 (delta 15)
fatal: Out of memory, malloc failed (tried to allocate 402763777
error: unpack failed: unpack-objects abnormal exit
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://remote.org//home/troyh/git/
It fails the malloc request of 400+ MB since only 390MB are available.
already done a "git gc" on the local side before the push and that
help. Does anyone have any suggestions to tell git to attempt to
memory usage on the remote end?
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at