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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,869
Community Members
 
Community Events
184
Community Groups

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

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 16, 2019

@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.

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 17, 2019

@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.

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 18, 2019

@Mangesh Chougule 

 

But which product, Bitbucket, Github etc?

 

Cheers

 

Kurt

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 18, 2019

@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?

Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 18, 2019

@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"
Kurt Klinner
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 21, 2019

@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