logoalt Hacker News

karussell • today at 6:34 PM • 1 reply • view on HN

What do you mean? G1 definitely has automatic heap sizing, i.e. Xmx just defines the maximum it is allowed to use.

edit: looks like you probably mean sth like this: https://openjdk.org/jeps/8359211


Replies

cyberax • today at 6:41 PM

Indeed.

One great feature in Go (or Python, or Node JS) is that you don't have to care about setting the -Xmx. The runtime will just use more RAM as needed, and you can use normal mechanisms like cgroups to limit the maximum size.