Hello,
i starting a VPS with 5 GB ram limit
vzctl set 05 --swappages 0:2G --save
vzctl set 05 --kmemsize 5G --save
vzctl set 05 --vmguarpages 5G --save
vzctl set 05 --oomguarpages 5G --save
vzctl set 05 --privvmpages 5G --save
and i start my java aplication ( i starting with max 3 gb -xmx3g and xms756m ), and it's starting with about 1 GB of RAM and about 4 GB of ram in buffers ( don't know why ). And when the limit of aplication ram usage get 5 GB it's stuck the whole VPS.
Why buffered RAM is counting to the whole VPS ram?.
Is there any way to turn off that buffers?.
total used free shared buffers cached
Mem: 5120 4047 1072 0 0 37
-/+ buffers/cache: 4009 1110
Swap: 2048 0 2048