OpenVZ Forum


Home » General » Support » *SOLVED* Unable to fork: Cannot allocate memory
*SOLVED* Unable to fork: Cannot allocate memory [message #9094] Sun, 17 December 2006 20:55 Go to next message
optize is currently offline  optize
Messages: 33
Registered: September 2006
Member
When I attempt to vzctl enter ###, I get the error "Unable to fork: Cannot allocate memory"

I ran a top and I'm not maxing out memory and nothing in swap is being used.

Any ideas?

[Updated on: Mon, 18 December 2006 06:22] by Moderator

Report message to a moderator

Re: Unable to fork: Cannot allocate memory [message #9095 is a reply to message #9094] Sun, 17 December 2006 20:58 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
cat /proc/user_beancounters


paste it here and we will show you which resource is being exhausted. read the UBC page in the wiki in the meantime.




-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Unable to fork: Cannot allocate memory [message #9096 is a reply to message #9095] Sun, 17 December 2006 21:24 Go to previous messageGo to next message
optize is currently offline  optize
Messages: 33
Registered: September 2006
Member
http://pastebin.ca/282774

I pasted it there

[Updated on: Sun, 17 December 2006 21:24]

Report message to a moderator

Re: Unable to fork: Cannot allocate memory [message #9099 is a reply to message #9096] Sun, 17 December 2006 21:55 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
In your UBC, kmemsize has failcnts for veid 1200. To raise this metric limit:

vzctl set 1200 --kmemsize 12752512:12752512 --save; vzctl restart 1200

Basically, your resource limits are too low for your applications' demands. This will fix that, at least on this resource, kernel memory.

Hope this helps.

Rick


-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Unable to fork: Cannot allocate memory [message #9100 is a reply to message #9099] Sun, 17 December 2006 21:59 Go to previous messageGo to next message
optize is currently offline  optize
Messages: 33
Registered: September 2006
Member
Interesting -- that was the VPS I was trying to get into which gave me that error.

I find it weird that it ran out of memory, it should have 128 of memory and up to a gig of burst and there's nothing but a small postfix server running on it.

Very odd.

Thanks though
Re: Unable to fork: Cannot allocate memory [message #9101 is a reply to message #9100] Sun, 17 December 2006 23:02 Go to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Read the UBC page as I suggested in my initial reply. You are exhausting kernel memory, which is different then 128MB/1GB burst.



-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Previous Topic: *SOLVED* Unable to create outgoing iptables rules
Next Topic: /dev/null: Permission denied :: in VE @ 2.6.18
Goto Forum:
  


Current Time: Thu Mar 28 12:34:12 GMT 2024

Total time taken to generate the page: 0.01708 seconds