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
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:
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!
That's it!