git pull Cannot allocate memory

Havri

Well-Known Member
Oct 28, 2013
86
19
8
cPanel Access Level
Root Administrator
Hello,

I am trying to do a git pull and I receive the following error:

[[email protected] public_html]$ git pull
/usr/libexec/git-core/git-sh-setup: fork: Cannot allocate memory

Is anybody else experiencing the same issue? Can anybody point me in the right direction?

Thank you.
 

vanessa

Well-Known Member
PartnerNOC
Sep 26, 2006
833
28
178
Virginia Beach, VA
cPanel Access Level
DataCenter Provider
Yea - your server is out of memory. If you're on a shared system and simply using shell access, my best guess is that your host has fork bomb protection enabled and set at the default (and unreasonably low) limits. First, you should run 'ps' to see what other processes are running as your user, and kill those off to free up some resources. If you've done this and the act of running 'git pull' is still a problem, you would need to talk to your host. Unless you have root access to the system we are not able to help you with this.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

The previous post should help explain what's happening. Let us know if you have any additional questions.

Thank you.
 

Havri

Well-Known Member
Oct 28, 2013
86
19
8
cPanel Access Level
Root Administrator
Hello,

Yes, I have root access to the server. I will try your recommendation and switch some settings and come back with an update.

Thank you.