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
Tamz
Tamz3mo ago
what’s the server hosted on
Spector
SpectorOP3mo ago
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
Tamz
Tamz3mo ago
gotcha have you configured the servercore mod
Spector
SpectorOP3mo ago
yes, I was reading a different post for it. I can post the config?
Tamz
Tamz3mo ago
yes
Spector
SpectorOP3mo ago
Spector
SpectorOP3mo ago
optimization.yml is default
SilentBot
SilentBot3mo ago
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
Spector
SpectorOP3mo ago
ok will try that it was recommended for that pack to keep the xmx and xms the same
SilentBot
SilentBot3mo ago
Yeah, you'd want to lower both to whatever value you use.
Spector
SpectorOP3mo ago
well 16GB on the system, 14GB assigned to the vm, so what should the xmx and xms be?
SilentBot
SilentBot3mo ago
Anything lower than 11G and above 4G
Spector
SpectorOP3mo ago
I tried 10G before 12 and it was the same I guess ill do 9 for both
SilentBot
SilentBot3mo ago
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?
Spector
SpectorOP3mo ago
nothing else is running in the vm or the host. its harder to test now since im the only one in the server now.
Spector
SpectorOP3mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
SilentBot
SilentBot3mo ago
memory is still getting quite high, but you're swapping 10% of what you were in the previous report
No description
Spector
SpectorOP3mo ago
probably because its just me in now
SilentBot
SilentBot3mo ago
Nah
SilentBot
SilentBot3mo ago
out of allocated memory, you're only using 4.1GB out of the 9GB allocated:
No description
SilentBot
SilentBot3mo ago
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.
Spector
SpectorOP3mo ago
but the first one with 3 people was 2GB usage so why was it using swap?
Tamz
Tamz3mo ago
it’ll use swap primarily and then ram iirc it’s best to just turn off swap
SilentBot
SilentBot3mo ago
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)
Spector
SpectorOP3mo ago
I would make sense if the lag didn't only start after updating the pack. but will keep on testing with this.
SilentBot
SilentBot3mo ago
Did you change launch arguments with the update?
Spector
SpectorOP3mo ago
no, I kept the same ones after updating. But Ive been trying different ones since the lag plague. still laggy with 2 people
Spector
SpectorOP3mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
SilentBot
SilentBot3mo ago
What CPU does the server have? CPU usage goes to 80% as your MSPT spikes
Spector
SpectorOP3mo ago
8 x Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
SilentBot
SilentBot3mo ago
So likely your CPU is underpowered for the amount of entities being ticked (which accounts for ~70% of your mspt)
Tamz
Tamz3mo ago
ah yikes thats a bad cpu lower the view distance and sim distance to 5 thatll help
Spector
SpectorOP3mo ago
it should be good enough for minecraft right? and it was fine before update but ill lower it
Tamz
Tamz3mo ago
uhh its very out of date tbf
Spector
SpectorOP3mo ago
change it in server.properties or servercore?
Tamz
Tamz3mo ago
server.properties you dont have the servercore dynamic render distance enabled
Spector
SpectorOP3mo ago
I changed it but its about the same
Tamz
Tamz3mo ago
another report
Spector
SpectorOP3mo ago
roger
Spector
SpectorOP3mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Tamz
Tamz3mo ago
hmm entities
No description
𝐁𝐢𝐪𝐮𝐚𝐭𝐞𝐫𝐧𝐢𝐨𝐧𝐬
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
Tamz
Tamz3mo ago
that cpu is struggling :tear:
Spector
SpectorOP3mo ago
😥
Tamz
Tamz3mo ago
CurseForge
Mobtimizations - Entity Performance Fixes
Optimizes a lot of tasks that Entity AI wastefully performs, minimal effect on gameplay. 6.8M Downloads | Mods
Tamz
Tamz3mo ago
and restart and run another report
Tamz
Tamz3mo ago
also make sure to install coroutil
No description
Spector
SpectorOP3mo ago
roger does this pack not have something like that already?
SilentBot
SilentBot3mo ago
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.
Tamz
Tamz3mo ago
nope stinky pack
Spector
SpectorOP3mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Tamz
Tamz3mo ago
entity stuff is still so high Not sure much anymore ngl
SilentBot
SilentBot3mo ago
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
Spector
SpectorOP3mo ago
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
Snow Kit
Snow Kit3mo ago
It's probably better to create a new post for completely different questions

Did you find this page helpful?