2011年7月28日 星期四

openvz: Unable to fork: Cannot allocate memory

http://forum.openvz.org/index.php?t=msg&goto=9094&
http://www.le4.org/?p=169

cat /proc/user_beancounters


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.




用cat /proc/user_beancounters发现112内核内存不够
将原来内核内存由12M调整为64M
vzctl set 112 --kmemsize 67108864:67108864 --save
#vzctl restart 112一般不用重启就行

沒有留言:

張貼留言