Help diagnosing lag in modded

ello! I am running a modded skyblock server (forge) on a cheap ass vps. Specs: AMD EPYC 7401P, 16 gb ram, 3 threads The server runs perfectly fine at 20 tps in skyblock, but the moment someone enters the nether the tps drops to 5-10 It is probably because of the cpu since it is a cheap vps, I have plenty of ram so that is not an issue Can someone please check if this is just cpu or any mod or something? Is there any way I can reduce this lag, whether by removing a mod, changing config or any way that doesnt involve upgrading server since I cant afford that atm... Spark: https://spark.lucko.me/Jt2D0PSa4L Btw the modpack is a customised version of "Fantasy Skies" with extra mods added
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
72 Replies
Admincraft Meta
Admincraft Meta•7mo ago
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 primordial9470#0
Admincraft Meta
Admincraft Meta•7mo ago
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 primordial9470#0
Skullians
Skullians•7mo ago
1. that CPU is awful for mc. consider making a post in #marketplace 2. do you have any command blocks or datapacks
Primordial
PrimordialOP•7mo ago
no datapacks, just a lot of mods i cant afford any of the hostings in marketplace atm unfortunately, is there any humanly possible way to reduce the lag?
Skullians
Skullians•7mo ago
use the /perf command
https://docs.bloom.host/datapacks/#disclaimer + https://misode.github.io/report/ canned message for people to use these to diagnose command function lag/identifying lagging datapacks (can also mention https://minecraft.wiki/w/Commands/perf, but thats more for the command and not actual diagnosing from it)
Primordial
PrimordialOP•7mo ago
imma try that out, ty 😅
Admincraft Meta
Admincraft Meta•7mo ago
For safety reasons we do not allow executables to be sent as they might contain malware. If you're compiling for someone please DM them and as a reminder. We cannot verify if a compiled jar has not been tampered in any way
Primordial
PrimordialOP•7mo ago
uh i cant send the /perf debug file, bot not letting me :') oh nvm sorry i was supposed to upload the file to misode oh god my brain is fried with all the information is there any way i can share it here other than taking all here?
Skullians
Skullians•7mo ago
dm it if you want
1whoÂĄssus?
1who¡ssus?•7mo ago
@Primordial you can try out a mod called dimensional threading If you have plenty of threads
Skullians
Skullians•7mo ago
@Primordial do you know of any mod, command block or datapack that creates Ominous Pearls?
Primordial
PrimordialOP•7mo ago
i got 3 threads uh, i cant find anything like that
Skullians
Skullians•7mo ago
are you positive you aren’t using command blocks try disabling it in server.properties?
Primordial
PrimordialOP•7mo ago
there could be some mod using it, i'll disable it in config
Skullians
Skullians•7mo ago
Well if it was a mod it wouldn’t use the command blocks themselves
Primordial
PrimordialOP•7mo ago
😭 this is trickier than i expected
Primordial
PrimordialOP•7mo ago
i found the mod for this its a mod/datapack named ultris https://modrinth.com/datapack/ultris
Modrinth
Ultris: Boss Expansion - Minecraft Data Pack
Explore 8 new and exciting bosses to take on across your world, with new structures, items, and stories for you to unravel.
Skullians
Skullians•7mo ago
ah yeah that’s probably your issue
Primordial
PrimordialOP•7mo ago
thanku! also on further inspection it turns out tps drop is only in nether specifically, not in any other dimensions there are some other mods that are marked as "mods/datapack" on modrinth, from what i know they are just datapacks exported into mods? i think? probably why there werent any datapacks in the datapacks folder
Skullians
Skullians•7mo ago
possibly
1whoÂĄssus?
1who¡ssus?•7mo ago
mods as data packs are fine iirc
Skullians
Skullians•7mo ago
well no, because the ultris ‘datapack / mod’ was the one causing a big portion of the lag I don’t know if @Primordial was using the datapack or mod ver
Primordial
PrimordialOP•7mo ago
the mod version
Skullians
Skullians•7mo ago
there you go @1whoÂĄssus?
1whoÂĄssus?
1who¡ssus?•7mo ago
Owo
Primordial
PrimordialOP•7mo ago
that was what i initially thought too, that mods would work differently, but apparently not
Skullians
Skullians•7mo ago
(Context: the /perf zip that primordial sent me had ultris related stuff as the laggiest) Im not surprised, it adds several bosses and items
1whoÂĄssus?
1who¡ssus?•7mo ago
Try akair flags too sync-chunk-writes: true Make this false You'll see some improvements I actually have got some akair flags you might wanna try
Skullians
Skullians•7mo ago
Only do this if you’re using a HDD otherwise if you’re using an SSD keep it false but yeah use Aikar flags
Primordial
PrimordialOP•7mo ago
there was another datapack hidden as a resourcepack, "spawn animations" https://modrinth.com/datapack/spawn-animations
Modrinth
Spawn Animations - Minecraft Data Pack
Hostile mobs dig out of the ground or poof into existence when they spawn!
Primordial
PrimordialOP•7mo ago
just removing this thing fixed most of the lag, its not going below 17 tps, even that only when generating chunks
Skullians
Skullians•7mo ago
yes that would also cause a lot of lag Have you not pregenerated?
Primordial
PrimordialOP•7mo ago
where can i get more info about aikar flags? idk about them not yet, gonna do it now
Skullians
Skullians•7mo ago
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Primordial
PrimordialOP•7mo ago
ty
Skullians
Skullians•7mo ago
In the generated flags remove the always pre touch flag btw
Primordial
PrimordialOP•7mo ago
oh aikar flags is just another name for java args?
Skullians
Skullians•7mo ago
yeah theyre a specialised configuration of startup flags
1whoÂĄssus?
1who¡ssus?•7mo ago
-XX:+UseG1GC -XX:MaxGCPauseMillis=130 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=28 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=20 -XX:G1MixedGCCountTarget=3 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:G1ConcRSHotCardLimit=16
-XX:+UseG1GC -XX:MaxGCPauseMillis=130 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=28 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=20 -XX:G1MixedGCCountTarget=3 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:G1ConcRSHotCardLimit=16
Skullians
Skullians•7mo ago
this but remove always pre touch
1whoÂĄssus?
1who¡ssus?•7mo ago
These supposedly are server oriented akair flags Oh yeah
Skullians
Skullians•7mo ago
They’re not ‘bad’ but they preallocate the memory which can risk OOMs
1whoÂĄssus?
1who¡ssus?•7mo ago
You must fully pregen your world!!!
Primordial
PrimordialOP•7mo ago
do i modify it in the startup?
No description
Skullians
Skullians•7mo ago
^ no
1whoÂĄssus?
1who¡ssus?•7mo ago
No? I sometimes modify them here
Skullians
Skullians•7mo ago
add it to the user Java args there’s a txt file Send the contents of unix_args rq
Primordial
PrimordialOP•7mo ago
i think java args file get ignored if there is a startup command set in pterodactyl?
Skullians
Skullians•7mo ago
:nono: not exactly Send the contents of unix_args.txt
Primordial
PrimordialOP•7mo ago
i copied a generic modpacks's args in the user_jvm_args file before
Skullians
Skullians•7mo ago
ahhh yeah replace them with these in user JVM args and it should apply
Primordial
PrimordialOP•7mo ago
this is the current file
No description
Skullians
Skullians•7mo ago
they’re actually fine but remove alwayspretouch
Primordial
PrimordialOP•7mo ago
think its mostly the same
Skullians
Skullians•7mo ago
mhm
Primordial
PrimordialOP•7mo ago
removed
Skullians
Skullians•7mo ago
can you send the unix args file content
Primordial
PrimordialOP•7mo ago
# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB.
# Uncomment the next line to set it.
# -Xmx4G
-Xms4G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1
# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M
# A good default for a modded server is 4GB.
# Uncomment the next line to set it.
# -Xmx4G
-Xms4G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1
oof
Skullians
Skullians•7mo ago
that’s userjvmargs isn’t there a unix args file
Primordial
PrimordialOP•7mo ago
i dont think there is one for forge theres a variables.txt
MINECRAFT_VERSION=1.20.1
MODLOADER=Forge
MODLOADER_VERSION=47.2.20
LEGACYFABRIC_INSTALLER_VERSION=0.11.1
FABRIC_INSTALLER_VERSION=1.0.0
QUILT_INSTALLER_VERSION=0.9.1
MINECRAFT_SERVER_URL=https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar
JAVA_ARGS="-Xms4G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1"
JAVA="java"
MINECRAFT_VERSION=1.20.1
MODLOADER=Forge
MODLOADER_VERSION=47.2.20
LEGACYFABRIC_INSTALLER_VERSION=0.11.1
FABRIC_INSTALLER_VERSION=1.0.0
QUILT_INSTALLER_VERSION=0.9.1
MINECRAFT_SERVER_URL=https://piston-data.mojang.com/v1/objects/84194a2f286ef7c14ed7ce0090dba59902951553/server.jar
JAVA_ARGS="-Xms4G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1"
JAVA="java"
should i change the startup command too? java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true $( [[ ! -f unix_args.txt ]] && printf %s "-jar {{SERVER_JARFILE}}" || printf %s "@unix_args.txt" ) ahh there should be a unix_args according to startup command, i'll make one manually ig
Primordial
PrimordialOP•7mo ago
current unix_args file, it was in the libraries directory




Admincraft Meta
Admincraft Meta•7mo ago
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
Requested by primordial9470#0
Skullians
Skullians•7mo ago
I would just add the aikar flags into the startup command
Primordial
PrimordialOP•7mo ago
alright tysm ✨ for helping my stupid ass
Skullians
Skullians•7mo ago
np lol sorry for my skill issues
Primordial
PrimordialOP•7mo ago
those were my skill issues lol who would've thought there were hidden datapacks in mods and resourcepacks, i would have never thought of that lol
iRasinGG
iRasinGG•7mo ago
Hi guys, My server is ultra mega laggy i'e tried everything buy idk what to do anymore PLEASE HELP https://spark.lucko.me/PWGfcG8K54
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta•7mo ago
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 dgxrasing#0
Skullians
Skullians•7mo ago
!offline
Skullians
Skullians•7mo ago
We don’t support offline mode I’d take a look at Alex’s mobs though
iRasinGG
iRasinGG•7mo ago
ok thanks, idek why i have it offline lol. I had somebody do the server for me

Did you find this page helpful?