Not the best config to run minecraft server.
Apparently 2 vCore and 2GB RAM makes java really struggle. I set the heap size to 1500MB so it won't push the everything to swap. I also use nice -20 to make the system do whatever it's best to focus on the minecraft server. And the JVM itself is from Zulu Zing, which is not the fastest one at the beginning, but when JIT kicks in, it will be the best (assuming the optimization thread won't take all the resources)
@skyblond@qoto.org Outch. If 2GB RAM is all that you can allocate, forget about the modpacks I mentioned. 😬 Those'd need 6+ RAM, 8 would be ideal. (Yes I play ridiculously huge modpacks, even my laptop is struggling.)
@trinsec That's the special offer from a Chinese cloud computing company. Something like hetzner can get much cheaper and larger ram, but the latency is the major consideration. Server in German are normally 200+ms, while the local one can get as little as 9ms.
I'm customizing my own mod pack. Tried minecolonies, 2GB RAM is not enough. So I add create mod and some other farming mod instead, with maybe 5 or 7 optimization mod. And it's still struggling...
Can't figure out why servers in China are so expensive.