Would like some insight on my spark report
Is there any further method I can take to optimise this or do I need to get a better CPU?
https://spark.lucko.me/zPuc9uBoGk
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
173 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by .deathpacito#0
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito#0
Running Vault Hunters 15.2 on Forge
Quite a heavy pack, seeing peaks of 19 players
Asking the modpack people they keep saying to just up the ram but it's already at 13GB, is that the best method to alleviate some of these issues?
consider getting servercore
Unfortunately no 1.18.2 release

shame
i'd say better cpu
Godddamnit server just crashed
What does this mean?
I extracted the moment it crashed
You ran out of RAM
so you need to give the server more ram
Any clue what number would be good?
read the link 😄
Wait what
what the fuck
Shame on you skullians
Why is it THERE
fuck you
Bruh
istg I checked CF as well
Thanks DK 🙏
np
not sure 16-18 would be a better starting point
We upped to 20, it's currently using 14.5GB with 15 players
Will wait for next crash to add the mod
on spark?
Idk my admin said it was
but yeah vault hunters is a HARD memory user
Let me check spark


I need to upgrade the CPU
@ProGamingDk Do you agree with this GPT assessment? I am trying to find a new CPU to upgrade to

i would personally do a amd one
you would need new motherboard ofcourse etc
Hmm alright
I'm using an ASUS Prime B550M-A WIFI 2 motherboard
Crash again https://mclo.gs/P1WdrZS
AMD Ryzen 7 7700X maybe?
bump
What is the biggest problem you are seeing?
Currently TPS issues, it's a heavy modpack and i'm trying to figure out whether I have maxed my options in terms of optimisation and have to upgrade my CPU (It's a self-host)
need logs
not crash report
from that one
watchdog crash reports doesnt give much
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito#0
Currently spark seems like it looks fine? People have complained about lagspikes from vaults opening
And closing
On the left is our current specs down to the processor, thinking of upgrading to the parts of the Ryzen 9 server to the right

would go r9 7950x3d
due to lower power usage
Thanks for the feedback, what about the motherboard?
I'm finding it difficult to understand what makes a motherboard good for my needs or not, and I am wondering if it is possible to have that processor with DDR4 as DDR5 seems to be double the price for not much benefit
no
r9 7th gen is ddr5 only
also amd works better with faster ram
Oh interesting, thought DDR5 was just an unnecessary expense
Still confused about how the motherboard factors into building the server, is it fine to just go for the cheapest that PCpartpicker won't scream conflicts at me for?
Before we jump into getting a new PC
there are some more things you can do to optimize the server
What are your current startup flags?
let me send 1 moment
-Xms20480M -Xmx20480M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs/ -Daikars.new.flags=true -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15
Holy
One minute
What are the specs the container/system is running at?
In Ptero, the startup stuff?
No, how much memory and cpu do you have allocated to the server
Ah Build config one sec
24GIB

500% CPU
Change to these:
We are also going to monitor your Garbage Collector for the next hour or so. It will be saved in a file called
gc.log
, I want you to send that to me in an hour after the server is stopped.alright
With these, we're matching the amount of threads you have available and your BlockIO
So yeah, just let it run for about an hour and then stop the server and send me the logfile
gc.log
and I'll do another analysis and review it with you to see what other optimizations we can do for your serverAlright, some people are in vaults right now, so we will be stopping in 30min with a timer so they can have advance warning to finish up. After that we will start up with your new flags and send them over after another hour
Sounds good 🙂
There's always a fix, hardware isn't always the issue
I'm personally not opposed to building a beefy server for futureproofing the server for our community, I was just caught off guard about how soon we hit a bottleneck
Thank you kindly for the advice so far though!
You're welcome 🙂
We're unable to start the server with these flags, trying to figure out why
we are using run.sh with the following:
container@pterodactyl~ ./run.sh
Error: Could not find or load main class java
Caused by: java.lang.ClassNotFoundException: java
So this is going into user jvm args
We got it to work after removing "java" at the front and "server.jar --nogui" at the end
Ah alright
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
gc.log
Requested by onlyrhythm#0
Hey we we not able to stop the server is that fine ?
how
there are 15 players online and if i stop the server they will murder me 🤣
ah :OMEGALUL:
Yep
So your GC is able to be tuned - it is pausing for too long.
@Deathpacito
Do the edits that you need
This will fix your GC so it stops pausing and opening another thread so quickly - should help performance a ton
i see thanks will do
Could you explain to normies like me what you did and why? This stuff looks like sheer wizardry to me :msnwhoa:
Would also like to know ^^
Pretty solid TPS now https://spark.lucko.me/aNSlNcjQxu
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito#0
The biggest optimization you can do is your Java Garbage Collector, we fined tuned it for you so your actual server thread has enough resources to run stably and your garbage collector works more efficiently
Should I start offering this as an actual service or keep doing it on the side? @Deathpacito @Skullians
If you are able to collect and provide evidence of efficacy and testimonials I don't see why not
Also need to word and explain what exactly you are doing
Maybe compare no flags to aikars flags to a customised solution
Thank you.
Mind leaving a review?
https://discord.com/channels/348681414260293634/1232412481880588368
uuhhhh I haven't applied those changes yet 😅
currently tps is solid because the player count is around 10
server lags when there are around 15 to 20 ppl
Oops
not that much btw just very occasional there are lag spikes no player Dat loss for eg in vaults when a player exits a vault then server lags a bit that it atm
I mean you've been an absolute fucking lifesaver for me, haven't had any GC issues and I've saved about ~2gb of RAM usage
if you want to make it an actual service, by all means, go for it
that's to be expected when players enter and exit vaults, you're loading an entire dimension (i think a vault is a dimension), and unloading it afterwards while loading parts of the overworld again
This also isn’t a 1-and-done solution, takes fine tuning which is 2-3 iterations of startup scripts. @Skullians and I went back and forth 4-5 times to get his running perfectly
mhm ^^
yupp i understand
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by onlyrhythm#0
that GC old is brutal
java -XX:+UnlockExperimentalVMOptions -Xms$(({{SERVER_MEMORY}}9/10))M -Xmx$(({{SERVER_MEMORY}}9/10))M -XX:MaxDirectMemorySize=$(({{SERVER_MEMORY}}*1/10))M -XX:+UseG1GC -XX:ParallelGCThreads=4 -XX:ConcGCThreads=2 -XX:MaxGCPauseMillis=50 -XX:G1NewSizePercent=20 -XX:G1ReservePercent=15 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32 -XX:MaxTenuringThreshold=16 -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+DisableExplicitGC -Dterminal.jline=false -Dterminal.ansi=true $( [[ ! -f unix_args.txt ]] && printf %s "-jar {{SERVER_JARFILE}}" || printf %s "@unix_args.txt" )
startup scrpit recommended by the vh ppl
any thoughts on this
they also recommend not upgrading the processor and just to optmise JVM
Have you tried the one I sent?
yup currently using that
https://spark.lucko.me/D7sDRK6hhs
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by onlyrhythm
Here's a spark profiler https://spark.lucko.me/0hWuWtfQRD
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito
Had a couple lagspikes over the past hour, just want to check if there's been any issue
Might be a GC issue? Seems like consistent spikes

vault hunters?
Auto save maybe?
could be either
Yep
No clue really, but players are complaining about it and i'm not sure what is causing this
my god, could be a few things. but im not experienced enough in that pack to help
No worries, thanks for your time 👍
You might be better doing an only ticks over 51 profiler
How do I do that?
/spark profiler start --only-ticks-over 51
let it run for a whileAlright, will let it run over the next hour or so
One lagspike just occured https://spark.lucko.me/iAwvSRezZu
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito
Could you check if this profiler is run correctly? I just pasted what you typed into the console
[09:35:50] [spark-worker-pool-1-thread-3/INFO] [minecraft/DedicatedServer]: [⚡] Stopping the background profiler before starting... please wait
[09:35:50] [spark-worker-pool-1-thread-3/INFO] [minecraft/DedicatedServer]: [⚡] Starting a new profiler, please wait...
[09:35:50] [spark-worker-pool-1-thread-3/INFO] [minecraft/DedicatedServer]: [⚡] Profiler is now running! (built-in java)
[09:35:50] [spark-worker-pool-1-thread-3/INFO] [minecraft/DedicatedServer]: [⚡] It will run in the background until it is stopped by an admin.
This looks fine here

^^^
What are you looking at?
The 1875 ticks exceeded?
yes, that only shows if you’re doing an only-ticks-over profiler
meaning that profiler only contains ticks that exceeded 51ms in duration
(we do 51ms as setting it to 50 can catch normal ticks)
I see, good to know
It's my first time doing the ticks over profiler
Does this mean no lagspikes?

spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito
Seems that was the only lagspike? I can't tell
It says running for 2h but graph says <5 min
This is weird, we hit another huge spike according to spark health but it's not showing on profiler: https://spark.lucko.me/J178DPv9W4
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito

Is this it?

@Jared | InfraCharm Sorry for ping, just wanted to check with you on whether this is a GC issue or something else
whyyyy do you have so much memory allocated
Was what the VH modpack recommended
Base 8GB and +2GB per player
Not sure what the ideal would be but less than this and server OOMS when hitting above 15 players
Yeah but you’re killing performance having so much memory allocated
It’s a lose lose situation
go with 8gb + 1 per player
most packs as Base need only 4gb
Thing is, 8GB +1 per player is already over 24GB at peak hours
what a hellish modpack
mind throwing me a new spark?
Sure, one sec
tyty
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito
tyty
I really don't understand why it only shows -4m
oh canary
wonderful
What the hell

Server threak 55ms, but serverlevel 585ms?
cuz your running only ticks over
well "recording"
I am confused how this works but as long as yall know ❤️
you do have servercore installed
but is it setup?
I don't know
@OnlyRhythm?
check thy configs and see 😛
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
message.txt
Requested by .deathpacito
not setup
ok uhhh one second
lucky you i setup a servercore config just a little while ago
https://discord.com/channels/348681414260293634/1276585194161176576/1276737920493158430
Yoinked
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
servercore.txt
Requested by .deathpacito
yup
hm ?
oh
server core had a config
lol
I added the changes
you can do /servercore reload or something like that
well evrything is gonna get reset after we update anyway
no need to restart server 😄
alr thanks
:uncanny:
yup need to delete config and the mods folder
pain
please
save the config
I'll drop the config file in the important files list
good
yup haaha
i should do that ngl
thats very fuckin smart
"new update?"
delete everything
add new mods
add custom mods and configs
ez update
you guys made me smart ty
@Clyde Server core makes such a huge difference, thank you kindly
Server can pregen while people are vaulting now
And still be at 20 TPS
exactly what i do : )
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by .deathpacito
Server updated, currently shows same spikes happening
Running spark profiler start --only-ticks-over 51 now
np