Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2020 09:29:06 +0200
From:      Daniel Braniss <danny@cs.huji.ac.il>
To:        =?utf-8?Q?Gerrit_K=C3=BChn?= <gerrit.kuehn@aei.mpg.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: limit process memory usage
Message-ID:  <343BE867-E4EA-4D22-B465-0D5C2586A4A0@cs.huji.ac.il>
In-Reply-To: <20200131071032.20a9a379@arc.aei.uni-hannover.de>
References:  <20200131071032.20a9a379@arc.aei.uni-hannover.de>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 31 Jan 2020, at 08:10, Gerrit K=C3=BChn <gerrit.kuehn@aei.mpg.de> =
wrote:
>=20
> Hello all,
>=20
> 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.
>=20
>=20
limit =E2=80=94 gives you the current settings
and to change:
limit memoryuse some-value

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?343BE867-E4EA-4D22-B465-0D5C2586A4A0>