#Minecraft server performance issues
100 messages · Page 1 of 1 (latest)
!spark
Spark
How to provide a Spark sampler.
- Stop your server.
- Download Spark: https://spark.lucko.me/download
- Upload the mod to your server:
Filemanager > mods (for modded servers)
or Filemanager > plugins (for plugin based servers)
(Just drag & drop the file) - Start the server.
- Use the command /spark profiler --only-ticks-over 70
- Wait 10-15 minutes.
- Use the command /spark profiler stop
- Copy the link it generates and paste it here.
run this when you actually notice lag. It'll record what's happening during this lag so we can see and help find it
ok
so to upload the mod onto the server, do I just download it and upload it in the mod folder?
well Im not sure if I installed it correctly, but now my server won't start
You need to put it on the server
not needed on your client
I meant the mod folder in the files section of the server panel
well, that was what I did, but now the server won't start. Is there anything else I'm supposed to install?
Please send some logs over so we can help resolve your issue. To access logs on your Minecraft server, please navigate to your server panel's File Manager and take the following path:
1. Open the Server's File Manager
2. Navigate inside the 'logs' folder
3. Click on "latest.log" to download it and send the file over Discord to this channel.
Im assuming I just install that into the mods folder of the server panel, right?
This shows basically 20TPS all the way through. No sign of lag
It’s important to run it all the way through lag otherwise it won’t really get any useful data
I might run another one later
I think the server occasionally gets tps drops as it was at 13 tps when I checked the tps
Not a lot to note here, the drops are only at MSPT but it’s very rare - would need to be ran whilst it lags and stopped on time
the main thing I notice on my server is that mobs have laggy movement
like when they move towards you, they would sometimes freeze
But it’s weird that the tps doesn’t seem to be the issue
And the issues seem to start happening when my friend is online
But when I’m online by myself, the server seems smooth
is it just you or do others also notice this?
and if you try to break a block, does it take longer for the item to appear dropped or does that appear normal?
It seems to start happening when my friend logs onto the server
iirc block breaking appears to be normal tho
Im not sure what would cause the server performance to slightly degrade when my friend joins
The fact that the server now has to load everything around both you and your friend basically.
Lag increasing when more people join is kind of a given, which is why we use tools to figure out what exactly is making that happen. Is it a crazy amount of mobs, world generation as people are exploring around, redstone machines, or some mod randomly taking up a bunch of the servers resources.
this time I played around with a weapon from one of my datapacks
seems like most weapons from the datapack cause the tps to drop
which is weird because in the past, it didn't do this
Do I really have to remove this datapack?
also I think the spark mod or fabric api messed up one of my datapacks. Is there a way to temporarity disable it?
This spark profile is a lot more useful. It does show its getting a lot of performance degradation by commands, which is very likely the datapack
Huh. Strangely enough, I’ve had this datapack for quite a while now, but only recently I’ve experienced the performance degradation.
Guess I’ll unfortunately have to remove it
Unless there’s a way to keep the datapack and prevent it from degrading server performance…
Is there a way to do that?
Ask the datapack developer I’d say. Maybe they know something more about what could cause the drop in performance
Again ask the datapack developer. It’s hard to tell
All spark sees is that it’s spending a crazy amount of time processing commands
Ok
Also is there a way to temporarily disable spark or fabric api, since I think one of those mods may be affecting one of my datapacks
you need fabric api for the mods youre runnig
its a dependency
Spark shouldnt do anything unless youre actively running a report
The only mod I’m running is Spark
Neither would effect a datapack.
Huh, well one of the items from one of the datapacks that I’m running just stopped working
Well I did /reload a few times
But I don’t think that would have broken the datapack
I still kinda of want to disable them to see if they are affecting the datapack
you delete them or put .d at the end of the file name and restart the server.
But if youre not going to be using fabric API, theres little reason to run fabric to begin with.
Ok so it seems that my friend can use the item perfectly fine, but I can’t
And the weapons causing the server tps to drop seem to happen only when I use it
So could it be possible that something is wrong with my player data?
Update: this is now fixed
Turns out it had nothing to do with fabric
Still have to figure out why my server console is saying “can’t keep up! Is the server overloaded? Running 40 ticks behind”
And it seems to be around a consistent 40 ticks behind
That error can appear, but if you don’t notice lag, it’s best to ignore it
It’s very common for a server to have a hiccup here and there and as long as it’s noticeable it’s not worth investigating
well it keeps on occuring on the console
9/10 modded Minecraft server will get that warning, yes.
Safe to ignore unless there's issues in game, like Seb said
I still don’t get why this is happening when multiple players are online
Actually mob movement seems to have constant stuttering
And it doesn’t seem to have to do with tps
And other notable issue is with xp gain, in which instead of the xp bar increasing consistently, there would be pauses between the xp gain
Not sure if I explained that well
The server is still playable, but I would like to figure out why the issues have been happening
Why is there 900 striders ?
Either way it’s spending almost half the time running commands which as they said is the data pack.
You should try removing it and seeing if you get the issue still or if the TPS shows better results
Well I disabled it, but the issue that I was talking about doesn’t seem to be related to the datapack
also strangely enough, it seems to be only when I use the weapons, the server tps drops
But when my friend uses it, there aren’t tps drops
Could it be caused by my player data or something?
also is doing /datapack disable (datapack name) the same as removing the datapack from the datapack folder?
No. There are several technical differences.
If you don't need it, then it's always better to remove it from the folder itself.