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
cat /proc/sys/vm/overcommit_memory 0 Might this be a problem?
Hi! Please ignore my post! I thought I understood UBC. Now I finally got it right!