git push fails - Out of memory, malloc failed
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
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 Bitbucket Server instance doesn't have available memory to fork out Git processes.
ソリューション
To dimension your Bitbucket Server instance correctly in terms of memory, please refer to Scaling Bitbucket Data Center where you can find more details on how Bitbucket Server forks out Git processes and how expensive it is.
Add memory to your Bitbucket Server instance accordingly.
この内容はお役に立ちましたか?