git push fails - Out of memory, malloc failed

症状

After executing a git push the following output is displayed:

Counting objects: 84347, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (44724/44724), done.
Writing objects: 100% (84347/84347), 4.83 GiB | 1.68 MiB/s, done.
Total 84347 (delta 36315), reused 84347 (delta 36315)
fatal: Out of memory, malloc failed (tried to allocate 1797195454 bytes)
error: unpack failed: index-pack abnormal exit

原因

This usually happens when the Stash server doesn't have available memory to fork out Git processes.

ソリューション

  • To dimension your Stash server correctly in terms of memory, please refer to Scaling Stash where you can find more details on how Stash forks out Git processes and how expensive it is.
  • Add memory to your Stash server accordingly.

Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.