Git内存不足,然后致命 - 早期的EOF [英] Git out of memory and then fatal - early EOF
问题描述
嗨我不知道这些错误是否有关系,但我说我应该提及这两种情况。
首先,当我试图推动大约1 / 1.5 GB到我的回购我收到以下错误...
pre $ 计数对象:4876,完成。
警告:次优包 - 内存不足
fatal:内存不足,malloc失败(试图分配156741292字节)
错误:未能将某些文件推送到/ var / www /。 ..'
我最终通过在clone和repository中运行这三个命令来解决这个问题。 / p>
git config pack.windowMemory15m
git config pack.SizeLimit3m
git config pack .threads1
代替它停止,我刚刚获得了次优包警告,并继续。
现在问题是我收到这个错误...
压缩对象:100%(4803/4803),完成。
错误:包装物件因信号984.59 MiB |死亡6.89 MiB / s
remote:fatal:early EOF
我一直在寻找,我已经尝试了两件事,但没有喜悦......
git config http.postBuffer 52428800
git config - 添加core.compression -1
使用ubuntu和git 1.9.1版的同一服务器上的克隆和回购
从git的角度来看,不确定是否有更好的答案,但已经耗尽了我提供的所有git选项从托雷克,并从服务器的角度来解决这个问题,并解决了这个问题。我创建了一个交换文件(虚拟内存)来解决这个问题。
Hi Im not sure if the errors are related but I said I should mention both in case they are.
Firstly as I was trying to push approx 1/1.5GB to my repo I was getting the following error...
Counting objects: 4876, done.
warning: suboptimal pack - out of memory
fatal: Out of memory, malloc failed (tried to allocate 156741292 bytes)
error: failed to push some refs to '/var/www/...'
I eventually resolved this by running these three commands in both the clone and repository..
git config pack.windowMemory "15m"
git config pack.SizeLimit "3m"
git config pack.threads "1"
Instead of it stopping I just got the suboptimal pack warning instead and it continued.
Now the issue is I am getting this error...
Compressing objects: 100% (4803/4803), done.
error: pack-objects died of signal 984.59 MiB | 6.89 MiB/s
remote: fatal: early EOF
I have been looking everywhere, I have tried 2 things so far but no joy...
git config http.postBuffer 52428800
git config --add core.compression -1
Both clone and repo on same server using ubuntu and git version 1.9.1
Not sure if there is a better answer for this from a git perspective, but having exhausted all my git options I took advice from torek and worked on this from a server point of view and the issue is resolved. I created a swap file (virtual memory) which solved the problem.
这篇关于Git内存不足,然后致命 - 早期的EOF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!