linux – 拉出警告时出错:次优打包 – 内存不足

linux – 拉出警告时出错:次优打包 – 内存不足,第1张

概述我试图做一个pull或git gc时一直遇到这个错误 警告:次优包装 – 内存不足 压缩对象:100%(10955/10955),完成. 致命:内存不足,malloc失败(试图分配827101023字节) 错误:无法运行重新包装 我该如何解决这个问题? This thread建议 run « git repack -adf --window=memory » on the repo where m 我试图做一个pull或git gc时一直遇到这个错误

警告:次优包装 – 内存不足
压缩对象:100%(10955/10955),完成.
致命:内存不足,malloc失败(试图分配827101023字节)
错误:无法运行重新包装

我该如何解决这个问题?

解决方法 This thread建议

run « git repack -adf --window=memory » on the repo where memory is escalated appropriately for your machine.

这与SO问题“Repack of Git repository fails”几乎完全相同.

git repack -a -d --window-memory 10m --max-pack-size 20m

但是,Mark Longair将于warn you that:

Your solution has got you a working copy locally and remotely,but will cause problems again when the remote repository decIDes to repack itself again.

因此,配置pack.windowMemory和pack.packSizelimit是一个更安全的解决方案,以及检查core.packedxxx和core.deltaxxx的配置.

对于windows上的msysgit,此评论提到:

git config --global pack.windowMemory 256m

worked for me (had have memory alloc error on 64 bit windows (Git-1.7.6-prevIEw20110708.exe)

总结

以上是内存溢出为你收集整理的linux – 拉出警告时出错:次优打包 – 内存不足全部内容,希望文章能够帮你解决linux – 拉出警告时出错:次优打包 – 内存不足所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1047571.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存