I'm trying to push my app to heroku using: git push heroku master the process runs fine for a little while then spits out all kinds of errors that I've never seen before and I can't find much help on google.
Here is the error log form console:
XXXXX-MacBook-XXXXXX xxxx$ git push heroku master
Counting objects: 7885, done.
Delta compression using up to 4 threads.
git(237,0xb0185000) malloc: *** mmap(size=81125376) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
warning: suboptimal pack - out of memory
git(237,0xb0185000) malloc: *** mmap(size=93798400) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
git(237,0xb0185000) malloc: *** mmap(size=93798400) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
fatal: Out of memory, malloc failed (tried to allocate 93797389 bytes)
error: pack-objects died with strange error
error: failed to push some refs to '[email protected]:xxxxx-xxx-xx.git'
Anyone know what this all means and why it's happening?
Also, i noticed that my: /Users/xxxxxx/Sites/xxxxxx/.git/objects folder is 700+ megs, not sure if that's normal or not as I'm new to rails and github.
Thank you for any help.
git pushis trying to grab 80-90MB of memory, that's a good sign you have some pretty large objects.find . -size +10Mfrom the top level to find files with sizes at least 10MB. Another possibility: do you have binary files that change frequently?git gc? Or... have you had this failure several times? I wonder if there are a bunch of partially constructed packfiles left behind by aborted pushes? They might be under easily identifiable temp filenames, not sure.