OpenVZ Forum

Home » General » Support » Unable to fork: Cannot allocate memory but websites loading
Unable to fork: Cannot allocate memory but websites loading [message #51038] Sat, 04 January 2014 09:17 Go to next message
postcd is currently offline  postcd
Messages: 73
Registered: April 2013
How can i fix "Unable to fork: Cannot allocate memory" on a VPS? I cant SSH into it, only see this from VPS host server. But websites loading ok on that VPS..? How to debug the cause & fix please?

Beancounters software returns:
held.....4095.62 mb
maxheld..4201.57 mb
barrier..4096.00 mb
limit....4096.00 mb

But i dont want to increase memory for this VPS, at same time i dont want VPS to return "Unable to fork: Cannot allocate memory".. what to do?

[Updated on: Sat, 04 January 2014 11:08]

Report message to a moderator

Re: Unable to fork: Cannot allocate memory but websites loading [message #51040 is a reply to message #51038] Mon, 06 January 2014 06:21 Go to previous message
grep is currently offline  grep
Messages: 34
Registered: November 2013
Why do you make 2 threads about same topic? #msg_50943

It means that your VPS has no ressources.

what to do?
Check which process takes the RAM and optimize this. Probably it is apache - optimize the webserver or change to lighttpd/nginx/litespeed/whatever.

Also make cat /proc/user_beancounters and paste result of ve where this error is. Look in this result at failcnt column.

I cant SSH into it
try vzctl exec veid free -m; ps aux & poste here.

[Updated on: Mon, 06 January 2014 06:22]

Report message to a moderator

Previous Topic: What is an optimal value for numiptent?
Next Topic: /dev/null permission denied
Goto Forum:

Current Time: Sat Jun 22 01:54:40 GMT 2024

Total time taken to generate the page: 0.02788 seconds