The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
$ 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?
Hi Kurt,
Thanks for the quick response!
I'm trying to push to a git server.
Please help for the same.
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 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
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"
This is something that you might need to figure out bye yourself. Increasing it as needed
Cheers
Kurt
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events