Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

My git push is failing with the below message,

$ git push

Enumerating objects: 5, done.

Counting objects: 100% (5/5), done.

Delta compression using up to 8 threads

Compressing objects: 100% (3/3), done.

fatal: Out of memory, malloc failed (tried to allocate 4168062027 bytes)

fatal: sha1 file '<stdout>' write error: Broken pipe

error: remote unpack failed: unpack-objects abnormal exit

error: failed to push some refs to 'git@git-ba.efi.com:ProductizationAutomation.git'

 udayak@udayak-w10lt MINGW64 /d/Git_ProductizationAutomation/ProductizationAutomation (master)

I am trying to push *.sql which is around 4Gb.

Can you help me get over this issue? Is there any limitation on the file size in the repository?

1 comment

@Mangesh Chougule 

 

Are you pushing to a bitbucket server? If yes, than

https://confluence.atlassian.com/bitbucketserverkb/git-push-fails-out-of-memory-malloc-failed-779171370.html

describes the problem (that the bitbucket server does not have enough memory available)

 

Cheers

Kurt

Hi Kurt,

Thanks for the quick response!

I'm trying to push to a git server.

Please help for the same.

@Mangesh Chougule 

 

Does git server mean bitbucket server?

If yes, than you could modify the startup script and change the setting for the maximum heap usable by bitbucket 

https://confluence.atlassian.com/bitbucketserver/scaling-bitbucket-server-776640073.html

 

Cheers

Kurt

Hi Kurt,

Thanks for the response.

its remote git server.

@Mangesh Chougule 

 

But which product, Bitbucket, Github etc?

 

Cheers

 

Kurt

@Mangesh Chougule 

 

Hi Mangesh

you should check the client settings and adjust them accordingly

try increasing the packSizeLimit (the values might need to be higher than 1000m for you)

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

Repacking the commit again

git repack -a -f -d

 

and try it again

Cheers

 

Kurt 

Like Mangesh Chougule likes this

Thanks Kurt,

 

This needs to run in my client machine?

@Mangesh Chougule 

 

Hi Mangesh

 

yes on the client machine

 

Cheers

Kurt

since im trying to push around 4gb of file so whats value need to put here

 

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

@Mangesh Chougule 

 

This is something that you might need to figure out bye yourself. Increasing it as needed

 

Cheers

Kurt

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you