OpenVZ Forum - RDF feed
type: channel
items: [solved] fork: Cannot allocate memory
items: Re: fork: Cannot allocate memory

[solved] fork: Cannot allocate memory
type: item
description: Hi! Premises: HW: 4*XEON 2.5G, 4GB RAM. OS: Debian 5, 2.6.26-2-openvz-686 vzctl version 3.0.22 APPs in container: LAMP+Mail I have read the thread: http://forum.openvz.org/index.php?t=msg&goto=9094& and I understand UBC. Problem: Apache, mysql, clamd, spamd consume a lot of memory. It doesn't matter how much memory I allocate to a container, the memory resource will be exhausted soon and I get: fork: Cannot allocate memory. Usually, I need a reboot. Now, this memory exhaustion cannot be avoided. I had to set both privvmpages and kmemsize to MAX_ULONG in order to have the machine operative for my customers. My question is, why isn't the system swapping when it reaches the limits, instead it gives this error? How can this be avoided in future? Thank you! Best regards, Bogdan
creator: levelx
date: 2009-07-05T12:41:29-00:00

Re: fork: Cannot allocate memory
type: item
description: cat /proc/sys/vm/overcommit_memory 0 Might this be a problem?
creator: levelx
date: 2009-07-05T13:55:10-00:00

Re: fork: Cannot allocate memory
type: item
description: Hi! Please ignore my post! I thought I understood UBC. Now I finally got it right!
creator: levelx
date: 2009-07-05T15:15:02-00:00