[Cialug] git memory issue

L. V. Lammert lvl at omnitec.net
Mon Mar 28 14:07:22 UTC 2022


Cleaned up a repo and added a new remote on an older server (v1.6.4.7),
but pushing thows a memory error:

$ git push--set-upstream master master
Enumerating objects: 1502, done.
Counting objects: 100% (1502/1502), done.
Delta compression using up to 2 threads
Compressing objects: 100% (1496/1496), done.
fatal: Out of memory, malloc failed

The problem seems to be that newer versions of git (v 2.25.2) do not honor
older memory parameters:

[core]
  packedGitLimit = 128m
  packedGitWindowSize = 128m

[pack]
  deltaCacheSize = 128m
  packSizeLimit = 128m
  windowMemory = 128m

[http]
  postbuffer = 5m

Don't suppose anyone knows how to limit memory usage with 2.26?

	Thanks!


More information about the Cialug mailing list