[Lxc-users] handle memory limits

sfrazt sfrazt at googlemail.com
Fri Aug 12 21:00:13 UTC 2011


Hi,

i want to to have a application container that acts with memory limits
as there is simple no more memory. Means: if it reaches the limit the
next question for more memory should simple be denied.

The default behaviour is to kill the application when it reaches the
limit (not good).

Then i found out that the config line
	lxc.cgroup.memory.oom_control = 1
turn off the killing, but simple freezes the application. You have the
possibility to get be notified if that happens, but then you could only
kill the application manually or increase the memory limits and the
application runs again. But this is also not that what i want.

The application should simple behave as there is no more memory, so the
application decides what to do if it gets no more memory.


I hope somebody has a solution. Thx in advance for answer.
Greetz
sfrazt




More information about the lxc-users mailing list