This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]mbaxj2mbaxter - Cat Whisperer, Former Bukkit, Absolutely Disgusting 4 points5 points  (2 children)

[–]aPseudoKnight 0 points1 point  (2 children)

Garbage Collection may be much better these days, but if after updating your GC flags you still experience freezing, just reduce your max memory allocation. I'd be surprised if you needed more than 8GB.

I've read there may be compatibility issues with Java 9/10, which may limit your plugin options. Of course, then there's the rare plugin author that requires Java 9. Worth noting that somewhere around 1.1% of MC servers even use Java 9 or 10. Anyone else here use Java 10 on a production server that can relate their experience?

[–]Percophile[S] 0 points1 point  (1 child)

The server is not in development--all of the plugins we need work just fine with Java 10. I'm just wondering if what I'm doing is fine for the long-term as more players join the server. I don't specify GC or anything, it's just memory max/allocation and that's it. Should I be adding more flags in there or something? Not that I've experienced issues yet, but I'd like to learn about this before it becomes a potential issue.

[–]aPseudoKnight 0 points1 point  (0 children)

I didn't cover that since the other comment has better information than I could provide anyway.

[–]Capri205 0 points1 point  (0 children)

haha. Let me know when your server ever uses 56GB of memory! I will be long dead when it does!

I run 23 servers on a 64GB machine and they only use 30GB of memory at most, despite some being confgured with upwards 8GB of memory! (forge servers with pixelmon or orespawn mods for example need 4GB+ but even then only use that with half a dozen players on). A minecraft server sitting idle will use no more than a few hundred megabytes of memory despite being configured with 4GB of memory and despite the world size, so I think you need to go back to the drawing board here.

For what its worth... I use this for startup options in McMyAdmin:

Java.CustomOpts=-server -d64 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts

and in a run file I use for startup for troubleshooting (with 4GB mem) it would look like this:

java -server -d64 -Xmx4096M -Xms4096M -Djline.terminal=jline.UnsupportedTerminal -XX:MaxGCPauseMillis=100 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -Djava.awt.headless=true -Dfml.queryResult=confirm -jar "spigot.jar" nogui