15 Dec
2010
15 Dec
'10
7:22 a.m.
On 14.12.2010, at 21.38, Thomas Hummel wrote:
On Tue, Dec 14, 2010 at 07:45:58PM +0000, Timo Sirainen wrote:
Is there a way/rule of thumb to guess the appropriate value ?
No idea :) vsz_limit=0 will at least always work, with the possibility of a memory leak eating all your memory. Maybe set it to 1 GB or so. It's anyway better to set it too high than too low to avoid killing existing connections when vsz_limit is exceeded.
Just to be sure : what is that vsz_limit exactly to begin with ?
It's used to set RLIMIT_DATA, and also RLIMIT_AS in operating systems that support that, with setrlimit() call. http://linux.die.net/man/2/setrlimit
Basically kernel enforces that the process won't be using too much memory.