Remix.run Logo
Traubenfuchs 3 days ago

If any JDK wizard is present:

In my opinion, the thing the JRE is REALLY missing is a single process level memory limit setting.

Nowadays you still have to consider the off heap memory when limiting a JRE processes max memory.

To clarify: -XX:MaxRAMPercentage should not exist. Instead the process should be told: „You can use x mb/gb of memory. Use of that what you need for offheap and use the rest for heap.“

That setting is embarassing. Figuring out its value is a mixture of voodoo, vibe-driven guessing and playing the game of „how much wasted memory do you want to risk to prevent a crash?“.

Give us -XX:MaxProcessMemory=4g please. Why doesn‘t this exist?