
Originally Posted by
jmx773
then there's no hope for me then, I'm running mine on 4GB RAM hah. I had to disable Java GC so it wouldn't keep freezing.
no wonder most servers have a daily auto-restart feature every midnight.
i wouldn't give up. what kind of GC are you using on your server? and what java version? i did investigate a bit and it turns out, that Parallel GC is not the best option for this environment. im running my server with JDK 16 i think, but if you are at least at JDK 14 (or JDK 13 i think already has it as an experimental feature), give ZGC a try.
i use it like this and i really dont have lag, i do have more ram though.
Code:
set DEFAULT_JVM_OPTS="-server" "-Xms4g" "-Xmx8g" "-XX:+UseZGC"
give it a read : https://blogs.oracle.com/javamagazin...age-collectors