Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
namibj
· 6y ago · 0 comments
Use a different GC, like e.g. the ZGC. I don't see any hangs anymore.
Comments
[–]
kjeetgill
6y ago
While I'm sure it's useful, JVM advice like this is usually less helpful than how much ram you're giving it (Xmx, xms). Particularly because you'll have an entirely different experience between an RPi, laptop, or desktop.
[–]
staticassertion
6y ago
I'm reluctant to use non-standard settings that the intellij team may not be optimizing for.
[–]
monadic2
6y ago
The default vm settings aren’t great. I would also give the vm plenty of heap space.
[–]
mister_hn
6y ago
For ZGC on Mac or Windows, you need to use latest Java 14 (not yet released)