From b2874dacef09ea00990fac43db70a57019c7bf41 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 15 Mar 2018 05:27:52 +0300 Subject: [PATCH] Feat: Limit memory for gc/repack Add a script to set config to limit memory for gc/repack to avoid out of memory errors. --- fix-gc-outofmemory | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 fix-gc-outofmemory diff --git a/fix-gc-outofmemory b/fix-gc-outofmemory new file mode 100755 index 0000000..4335722 --- /dev/null +++ b/fix-gc-outofmemory @@ -0,0 +1,8 @@ +#! /bin/sh + +git config core.packedGitLimit 128m +git config core.packedGitWindowSize 128m + +git config pack.threads 1 +git config pack.windowMemory 256M +git config pack.deltaCacheSize 128m -- 2.39.5