Prominence 2 modpack lag after update
I updated my prominence 2 server to the latest update, and now it gets very laggy with more than 1 player on. It wasnt like this before the update.
https://spark.lucko.me/2nX2GuHTAt
@Tamz
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
55 Replies
what’s the server hosted on
I have tried different things like java args, and servercore mod.
its hosted on crafty 4 on a ubuntu vm ontop of proxmox. 6 cores 14Gb of ram
internet is 600 down and up
gotcha
have you configured the servercore mod
yes, I was reading a different post for it.
I can post the config?
yes
optimization.yml is default
The VM is out of memory and is using swap
Your server is only using 2.7GB of memory out of the allocated 12, setting a Xmx of 12G is starving the machine of usable ram
Lower your Xmx to ~6-8GB
ok will try that
it was recommended for that pack to keep the xmx and xms the same
Yeah, you'd want to lower both to whatever value you use.
well 16GB on the system, 14GB assigned to the vm, so what should the xmx and xms be?
Anything lower than 11G and above 4G
I tried 10G before 12 and it was the same
I guess ill do 9 for both
Do you have anything else running in the VM?
Does the spark report still show your system memory being 95% when you run a spark report with the new Xmx/Xms?
nothing else is running in the vm or the host.
its harder to test now since im the only one in the server now.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
memory is still getting quite high, but you're swapping 10% of what you were in the previous report

probably because its just me in now
Nah
out of allocated memory, you're only using 4.1GB out of the 9GB allocated:

So you won't run into memory issues for a while
The high system memory usage was causing swapping though, so you should be fine as long as your system usage doesn't cause swapping to start again.
but the first one with 3 people was 2GB usage so why was it using swap?
it’ll use swap primarily and then ram iirc
it’s best to just turn off swap
Because the server doesn't need much memory to run
But setting Xmx prevents anything else on your machine using that reserved memory
In the first report you sent, you had 12G allocated to MC, leaving 1G for everything else on your machine, which was not enough, causing swapping to occur
RAM is preferred to SWAP, and the OS typically only swaps things that don't get frequently read, but when you run out of RAM, it will use it as a last resort
(it depends on what the swappyness value is configured to)
I would make sense if the lag didn't only start after updating the pack. but will keep on testing with this.
Did you change launch arguments with the update?
no, I kept the same ones after updating. But Ive been trying different ones since the lag plague.
still laggy with 2 people
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
What CPU does the server have?
CPU usage goes to 80% as your MSPT spikes
8 x Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
So likely your CPU is underpowered for the amount of entities being ticked (which accounts for ~70% of your mspt)
ah yikes thats a bad cpu
lower the view distance and sim distance to 5
thatll help
it should be good enough for minecraft right?
and it was fine before update
but ill lower it
uhh
its very out of date tbf
change it in server.properties or servercore?
server.properties
you dont have the servercore dynamic render distance enabled
I changed it but its about the same
another report
roger
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
hmm entities

Out of curiosity, for other services I made having a little bit of swap is usually a good practice
So for minecraft servers is best to have no swap at all?
Afaik only background processes will be running on swap since the jvm already allocated its memory on ram
that cpu is struggling :tear:
😥
https://www.curseforge.com/minecraft/mc-mods/mobtimizations
try adding this mod to the server
CurseForge
Mobtimizations - Entity Performance Fixes
Optimizes a lot of tasks that Entity AI wastefully performs, minimal effect on gameplay.
6.8M Downloads | Mods
and restart and run another report
also make sure to install coroutil

roger
does this pack not have something like that already?
Swap is fine if used properly, but some people would prefer their executables crash rather than having terrible performance, so it's more obvious there's a problem.
nope
stinky pack
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
entity stuff is still so high
Not sure much anymore ngl
CPU is at 90% usage, with 50% of that usage coming from AI, ~15% coming from chunk saving, and the rest from network and networking stuff basically
And that's with only 493 entities
So as more players play, it's only going to struggle more and more
That CPU just doesn't appear to be strong enough to run a server for the pack unfortunately
maybe, but it was fine before with 4 people on, so Im trying to find whats changed
oh well, do you know how I can configure opac (open parties and claims) to allow any player to interact with any claim but protect from mobs?
ive been trying but its not working
Hi
It's probably better to create a new post for completely different questions