WebFaction
Community site: login faq

Hi, sometimes I commit fairly large files. As a result git memory usage can go really high and has already been killed once by the system. Is there a way to keep it under my limit?

asked 21 Oct '14, 10:59

kks
124
accept rate: 100%


Hello,

Updating git configuration to limit the memory consumption should help.

Some users have found success implementing what is described here:

http://stackoverflow.com/questions/3095737/is-there-a-way-to-limit-the-amount-of-memory-that-git-gc-uses

I hope this helps.

permanent link

answered 22 Oct '14, 02:40

NickR ♦♦
4415
accept rate: 19%

I set the following configuration both at the server and client side:

git config --global pack.windowMemory "25m"
git config --global pack.packSizeLimit "25m"
git config --global pack.threads "1"

Still no luck :(

(25 Oct '14, 23:38) kks

Does your repository contain large binary blobs? Sometimes committing large binary files (such as the static media for a website) can cause this type of problem.

It might be possible, but I'm not sure of an effective way to limit the memory usage if that happens to be the cause. I've always avoided adding large binary files to repositories.

(26 Oct '14, 07:03) ryans ♦♦

Yes, my repository contains some large binary files. As a workaround I will manually sync the client that fails to pull.

(26 Oct '14, 19:08) kks
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×111

question asked: 21 Oct '14, 10:59

question was seen: 9,920 times

last updated: 26 Oct '14, 19:08

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM