So, after asking this question, it quickly became clear that the important question was not \"how can I\", but \"should I\"?
We have customers that we are moving fro
Answer from @eckes comments:
i would set a maximum which is large enough to not trigger in normal situations. The reason I say this is, that a system might act very erratic and hard to control if native memory gets exhausted or wild swapping happens. Much worse than a OOM or Java freeze. For example using 2GB (epecting a system to have 2gb buffers free at minimum)