I need to set an upper bound to the memory used by Mono.
According to blogs it's possible to use the parameter max-heap-size
to cap the memory usage.
According to experimentations, and according to the code, it indeed does what I want.
However, this option isn't documented.
Therefore: is it safe to rely on this option in production (or does it have drawbacks I don't see, like e.g.: no guarantee to still be available in future version of Mono)?
It is documented, and here's one way to get the documentation:
export
an invalidMONO_GC_PARAMS
, startmono
:and get the help:
As you can see
max-heap-size
is listed, and not in theExperimental Options
. So I'd say it's safe.It is documented in the mono man page :