Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

OpenVZ: VPS Cannot allocate memory

Platonic | 0 comments

Are you getting the following error while you SSH into the VPS server?

ssh_exchange_identification: Connection closed by remote host

You might get the following when you try entering the same VPS via Hardware Node.

[root@vps1 ~]# vzctl enter 100
Unable to fork: Cannot allocate memory

To resolve this issue, you must check the resource usage of this VPS server. This can be done in two ways.

1. Run the following command in hardware node to check the resource consumption.

[root@vps1 ~]# vzctl exec 130 101 cat /proc/user_beancounters

This command will execute a cat command on user_beancounters inside the VPS in question and gets back to us with the resource related information.

But above command didn’t work for me as the resource usage was way too high even to run simple command like cat.

Unable to fork: Cannot allocate memory

Here I had to depend on the second opiton.

2. If you’re using Virtuzzo or HyperVM VPS management appliances, login to them and check the QOS (Quality Of Service) page to see whats really going on with the VPS.

This is what I found out about my VPS server which was having trouble.

PRIVVMPAGES Size of private (or potentially private) memory, allocated by an application. Memory that is always shared among different applications is not included in this resource parameter.

I did change the value of PRIVVMPAGES and restarted the VPS to get it back online.

You can change this value as a VPS hardware node admin manually by editing /etc/sysconfig/vz-scripts/.conf

Related Articles

Related

Serendipity eBook & Print edition

Serendipity eBook & Print edition

ಡಾ. ಕಿರ‌ಣ್ ಸೂರ್ಯ ಅವರು ಬರೆದಿರುವ ಸೆರೆಂಡಿಪಿಟಿ - ವೈದ್ಯಲೋಕದ ಅದ್ಭುತ ಆಕಸ್ಮಿಕಗಳು ಇ-ಪುಸ್ತಕ ಈಗಾಗಲೇ ಸಾವಿರಾರು ಜನರನ್ನು ಫೇಸ್‌ಬುಕ್, ಟ್ವಿಟರ್, ಇಂಟರ್ನೆಟ್ ಆರ್ಕೈವ್ ಮೂಲಕ ತಲುಪಿದೆ. ಇದರ ಮುದ್ರಿತ ಪ್ರತಿ ಪಡೆಯುವ ಇಚ್ಚೆ ವ್ಯಕ್ತಪಡಿಸಿರುವ ಓದುಗರಿಗೆ, ಕನ್ನಡದ ವಿಜ್ಞಾನ ಸಾಹಿತ್ಯದ ಒಂದು ಪ್ರಯೋಗವಾಗಿ ಹಲವಾರು...

read more