> On 31 Jan 2020, at 08:10, Gerrit Kühn <[email protected]> wrote:
> 
> Hello all,
> 
> I have an application that sometimes develops some kind of memory leak
> or similar and eats up all RAM within a few minutes until the system is
> running out of memory and swap so the kernel starts randomly killing other
> processes and finally the crashes.
> Is there a way to limit the memory available to an (or any) application so
> that something like this doesn't tear down the whole system every time it
> happens but just kills the culprit? I found the rctl tool, but I couldn't
> make out how to use it for this purpose so far.
> 
> 
limit — gives you the current settings
and to change:
limit memoryuse some-value

> cu
>  Gerrit
> _______________________________________________
> [email protected] mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "[email protected]"

_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[email protected]"

Reply via email to