OpenVZ Forum


Home » General » Support » -bash: fork: Cannot allocate memory (Cannot allocate memory errorr in Putty)
-bash: fork: Cannot allocate memory [message #42164] Sat, 12 March 2011 15:06 Go to next message
cLaudYu is currently offline  cLaudYu
Messages: 2
Registered: March 2011
Location: Romania
Junior Member
Hello.
I have 1 Vps. I have OS - "centos-5-i386-hostinabox576", Disk Space - 100 Gb, Ram's - 2 Gb. On the VPS i have installed Shoutcast for my radio station.
After I write in putty root and password I took this error "-bash: fork: Cannot allocate memory"

The print with the error is here img585.imageshack.us/i/erorrg.png/

How can I solve this problem?
Please help me and Thnx
Re: -bash: fork: Cannot allocate memory [message #42174 is a reply to message #42164] Tue, 15 March 2011 07:30 Go to previous messageGo to next message
nuno is currently offline  nuno
Messages: 43
Registered: January 2010
Member
That container is running out of memory. You can see what limit it's hitting with cat /proc/user_beancounters

That limit should be raised.

Regards,
Re: -bash: fork: Cannot allocate memory [message #42184 is a reply to message #42174] Tue, 15 March 2011 13:08 Go to previous messageGo to next message
cLaudYu is currently offline  cLaudYu
Messages: 2
Registered: March 2011
Location: Romania
Junior Member
In /proc/user_beancounters I saw the limits, I edited but not saved.
But I rebuilded the OS and now work fine ;P

Thnx anyway Wink
Re: -bash: fork: Cannot allocate memory [message #42204 is a reply to message #42184] Thu, 17 March 2011 14:07 Go to previous message
mercy is currently offline  mercy
Messages: 12
Registered: October 2010
Location: msk.ru.earth
Junior Member

cLaudYu wrote on Tue, 15 March 2011 09:08
In /proc/user_beancounters I saw the limits, I edited but not saved.
But I rebuilded the OS and now work fine ;P

Thnx anyway Wink


/proc/user_beancounters provide info about current limits.
If you want to edit limits you must use
vzctl set VEID --limit1 limit1value --limit2 limit2value --save

This command will change limits on the fly and store it in /etc/vz/conf/VEID.conf

More info in man vzctl Wink


no fear. never give up. never surrender.
Previous Topic: Mount bind to merge split shared disk?
Next Topic: vps configuration for vps to run cpanel
Goto Forum:
  


Current Time: Wed Jul 31 03:19:21 GMT 2024

Total time taken to generate the page: 0.02800 seconds