Unable to fork: Cannot allocate memory

When you see a message “Unable to fork: Cannot allocate memory” while logging to a VPS from the node.

The reason is the VPS is running out of resources RAM. To temporary solve this issue, you may restart the VPS by executing below command:

vzctl restart VEID 
 
Note : Replace your VEID with your VPS ID. 

OR

Increase RAM of the VPS and increase "privvmpages" and "kmemsize" parameters for the VPS in below file:

1. Edit the configuration file of the VPS - vi /etc/sysconfig/vz-scripts/veid.conf
2. After increase the value of the above two parameters, restart the VPS.

That's it!

Was this answer helpful?

 Print this Article

Also Read

How to display the Quota correctly on cPanel?

On cPanel server , sometimes disk quota are not displayed correctly. The reason is that the "...

date: cannot set date: Operation not permitted (OpenVZ)

When you are getting below error, while updating the date on OpenVZ VPS -date: cannot set date:...

network error: could not connect to server.. xxx.xxx.xx.xxx:port

Sometimes the Java VNC for windows server doesn't work and shows the error message as below:...

Powered by WHMCompleteSolution