Error Cannot Fork For Index-pack Cannot Allocate Memory
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of -bash: fork: cannot allocate memory this site About Us Learn more about Stack Overflow the company Business Learn git out of memory calloc failed more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ git pull out of memory Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can
Git Out Of Memory Malloc Failed
answer The best answers are voted up and rise to the top Why am I frequently getting this “Cannot allocate memory” error? up vote 17 down vote favorite 8 I'm using Ubuntu 12.10 with Gnome-Classic. I am getting this error frequently and with almost all programs, big and small. When I try to open them, they don't start, and instead I get an error message fatal: out of memory, malloc failed (tried to allocate 524288000 bytes) that says Could not launch 'Program' - Failed to fork child process (Cannot allocate memory). This wasn't a problem until within the last few weeks. I can not discern any commonality among the programs that cause this error. It seems to be more a matter of time. After my computer has been running for a while, anywhere from a day to a few days, then I can't seem to start any new programs. The only way I know to prevent this error is to reboot the computer. Why am I getting this error and what do I do to stop it happening? I ran the memtest available from the GRUB menu, and it reports no errors, so I don't think this is a hardware failure. I also ran sudo apt-get check, and no errors were found. Here is some requested command line output: $ free -m total used free shared buffers cached Mem: 3945 3753 191 0 181 475 -/+ buffers/cache: 3096 848 Swap: 3813 60 3753 $ swapon -s Filename Type Size Used Priority /dev/sda6 partition 3905532 61648 -1 $ ulimit -a core file size (blocks, -c) 0 data seg size (kb
♦ | Report Content as Inappropriate ♦ ♦ Large pack causes git clone failures ... what to do? Hi, I did a "git gc" on a repository and ended up with a 4GB pack ... now I can't clone the repository git clone out of memory and get the following: remote: fatal: Out of memory? mmap failed: Cannot allocate memory remote:
Ulimit
aborting due to possible repository corruption on the remote side. fatal: early EOF error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting
Git Gc
due to possible repository corruption on the remote side. fatal: index-pack failed How do I deal with this? I'm running git version 1.6.2.3 I've looked at "git repack --max-pack-size", but which that created new packs it didn't delete the http://askubuntu.com/questions/253466/why-am-i-frequently-getting-this-cannot-allocate-memory-error old monster. If I run gc, how do I tell it about the max-pack size? It doesn't seem to support this argument. Cheers, Geoff -- 6 Fifth Ave, St Morris, S.A. 5068 Australia Ph: 041 8805 184 / 08 8332 5069 http://perfidy.com.au-- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [hidden email] More majordomo info at http://vger.kernel.org/majordomo-info.html Shawn Pearce Reply | Threaded Open this post in threaded view ♦ ♦ | http://git.661346.n2.nabble.com/Large-pack-causes-git-clone-failures-what-to-do-td5481488.html Report Content as Inappropriate ♦ ♦ Re: Large pack causes git clone failures ... what to do? Geoff Russell <[hidden email]> wrote: > I did a "git gc" on a repository and ended up with a 4GB pack ... now I > can't clone the repository and get the following: > > remote: fatal: Out of memory? mmap failed: Cannot allocate memory > remote: aborting due to possible repository corruption on the remote side. > fatal: early EOF > error: git upload-pack: git-pack-objects died with error. > fatal: git upload-pack: aborting due to possible repository corruption > on the remote side. > fatal: index-pack failed > > How do I deal with this? I'm running git version 1.6.2.3 Are you on a 32 bit Linux system? Or 64 bit? Git should be auto selecting a unit that would allow it to mmap slices of that 4GB pack. > I've looked at "git repack --max-pack-size", but which that > created new packs it didn't delete the old monster. You really needed to run: git repack --max-pack-size=.. -a -d The -d flag tells it to remove the old packs once the new packs are ready, and the -a flag tells it to reconsider every object in the repository, rather than just those that are loose. But if you can't clone it, you probably can't repack it. Clone works by creating a pack file on the s
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies http://superuser.com/questions/441889/error-cannot-fork-for-status-resource-temporarily-unavailable-git of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a out of question Anybody can answer The best answers are voted up and rise to the top error: cannot fork() for status: Resource temporarily unavailable (git) up vote 4 down vote favorite when I want to do something: add , remove, pull , push in github, I just have this error in my terminal Thanks in advance! selnaz:iOS-Tidinfo Lnaz$ git add . error: cannot fork() out of memory for status: Resource temporarily unavailable fatal: Could not run git status --porcelain fatal: git status --porcelain failed fatal: git status --porcelain failed fatal: git status --porcelain failed fatal: git status --porcelain failed fatal: git status --porcelain failed fatal: git status --porcelain failed Edit: selnaz:iOS-Tidinfo Lnaz$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 256 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 709 virtual memory (kbytes, -v) unlimited Edit2 selnaz:iOS-Tidinfo Lnaz$ ps xfu | wc -l ps: illegal option -- f usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]] [-u] [-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]] ps [-L] 0 git share|improve this question edited Jun 26 '12 at 21:47 asked Jun 26 '12 at 20:02 Elnaz Shahmehr 12126 Can you show us the output of ulimit -a in that same terminal? How many processes do you have running on that server? What does ps xfu |