limit process memory usage
Daniel Braniss
danny at cs.huji.ac.il
Fri Jan 31 07:29:13 UTC 2020
> On 31 Jan 2020, at 08:10, Gerrit Kühn <gerrit.kuehn at aei.mpg.de> 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
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
More information about the freebsd-stable
mailing list