remote: fatal: Out of memory, malloc failed

现象

test@pm:~/abc$ git clone shouyong@x.x.x.x:/data/git/repositories/abc.git
Cloning into 'a'...
remote: Counting objects: 256627, done.
remote: warning: suboptimal pack - out of memory
remote: fatal: Out of memory, malloc failed (tried to allocate 317810689 bytes)
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed


解决

方法一

修改

data/git/repositories/abc.git/config

[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
[pack]
        window = 0

此方法验证ok。


参考

Git Server 噴 git upload-pack: git-pack-objects died with error

http://blog.wu-boy.com/2014/02/git-server-git-pack-objects-died-with-error/


已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 游动-白 设计师:白松林 返回首页