Test the OOM situation
brianp at brianp.net
Tue May 18 21:14:48 MSD 2010
On Tue, May 18, 2010 at 9:25 AM, Peter Leonov <gojpeg at gmail.com> wrote:
> Hello devels,
> There is a module that requires a heavy testing in environment with low
> memory. Especialy it could be good to test how it goes if no more memory is
> available in the system.
> So the questions are: is there a way to test such a module without a virtual
> machines? and are there some tools which might be of help?
Would using setrlimit(2) to reduce RLIMIT_AS on the nginx processes
be sufficient for your tests? That wouldn't limit the system-wide memory
availability, but it would create a limit on how much memory nginx
could malloc and mmap.
More information about the nginx-devel