RSS

Unable to fork: Cannot allocate memory

29 Sep

 

Some times we get error while entering in to the VPS server
vzctl enter ###,
We get the errorlike
“Unable to fork: Cannot allocate memory”

For eliminating the error just follow the below mentioned steps:

check the container id in cat /proc/user_beancounters by firing the command
cat cat /proc/user_beancounters | grep container ID
Then you will be able to see
Container ID:  kmemsize        2505478    2538648   11055923   11377049          0

So the memory is consumed totally.now,
vzctl set container ID –kmemsize 12752512:12752512 –save
Now restart the container
vzctl restart container ID

OR

I my case I have just restarted the VPS container 😛

Thatss it!!
Now try to enter to the VPS container and you will not receive the error.

Advertisements
 
Leave a comment

Posted by on September 29, 2011 in Uncategorized

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: