Memory inside Linux containers (2014)
fabiokung.com
fabiokung.com
The only way out is to configure memory limits by hand, taking into account the maximum number of threads your application will use. That usually isn't trivial.
Are java processes usually deployed in (1 server to 1 java process ) configuration ?
Seems a bit strange for runtime to assume certain deployment configurations.
You can use the lxcfs fuse filesystem to get that and a little more: https://github.com/lxc/lxcfs/blob/master/README.md