I suspect we're talking at cross purposes here.
I have assigned the container a limited amount of memory. But because memory overcommit is using the default heuristics, the OS is allowing applications in the container to malloc() more memory than is available, hoping that it the applications won't actually *use* all that memory. But the applications (or one program in particular) is trying to use all the memory the OS promised it.
On a physical machine or VM, I would simply tell the OS not to be so generous. But the way I would that there is not working from inside the lxc. I don't want to apply the config to the proxmox host as there are lots of other containers on this machine, and usually memory overcommit is beneficial (that's why its enabled by default).
Given that its a shared kernel, I don't know if what I am attempting to do is possible but I can't find any documentation either way.
If I simply give the container more memory, the OS will still allow the program in question to allocate more memory than it can supply.