#Minecraft server performance issues

100 messages · Page 1 of 1 (latest)

glossy pebble
#

Recently, I started to notice minor performance issues with my server, with messages of "Can't keep up! Is the server overloaded?..." on console and more server lag when more people are online.

tough pilotBOT
#

Spark
How to provide a Spark sampler.

  1. Stop your server.
  2. Download Spark: https://spark.lucko.me/download
  3. Upload the mod to your server:
    Filemanager > mods (for modded servers)
    or Filemanager > plugins (for plugin based servers)
    (Just drag & drop the file)
  4. Start the server.
  5. Use the command /spark profiler --only-ticks-over 70
  6. Wait 10-15 minutes.
  7. Use the command /spark profiler stop
  8. Copy the link it generates and paste it here.
barren rover
#

run this when you actually notice lag. It'll record what's happening during this lag so we can see and help find it

glossy pebble
#

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

barren rover
#

not needed on your client

glossy pebble
#

I meant the mod folder in the files section of the server panel

barren rover
#

assuming you run a modded server

#

yes then you put it in mods

glossy pebble
#

well, that was what I did, but now the server won't start. Is there anything else I'm supposed to install?

barren rover
#

no spark just comes as is

#

can you send your latest.log over please?

#

!llogs

tough pilotBOT
#

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.
glossy pebble
barren rover
glossy pebble
#

oh

#

ok

glossy pebble
#

Im assuming I just install that into the mods folder of the server panel, right?

glossy pebble
barren rover
#

It’s important to run it all the way through lag otherwise it won’t really get any useful data

glossy pebble
#

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

glossy pebble
elder tinsel
#

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

glossy pebble
#

the main thing I notice on my server is that mobs have laggy movement

glossy pebble
#

like when they move towards you, they would sometimes freeze

glossy pebble
#

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

barren rover
#

and if you try to break a block, does it take longer for the item to appear dropped or does that appear normal?

glossy pebble
#

It seems to start happening when my friend logs onto the server

#

iirc block breaking appears to be normal tho

glossy pebble
#

Im not sure what would cause the server performance to slightly degrade when my friend joins

fleet rivet
#

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.

glossy pebble
#

this time I played around with a weapon from one of my datapacks

glossy pebble
#

seems like most weapons from the datapack cause the tps to drop

#

which is weird because in the past, it didn't do this

glossy pebble
#

Do I really have to remove this datapack?

glossy pebble
#

also I think the spark mod or fabric api messed up one of my datapacks. Is there a way to temporarity disable it?

barren rover
glossy pebble
#

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?

barren rover
glossy pebble
#

I mean, I am running several datapacks

#

could be an incompatibility

barren rover
#

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

glossy pebble
#

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

fleet rivet
#

you need fabric api for the mods youre runnig

#

its a dependency

#

Spark shouldnt do anything unless youre actively running a report

glossy pebble
#

The only mod I’m running is Spark

small sundial
#

Neither would effect a datapack.

glossy pebble
#

Huh, well one of the items from one of the datapacks that I’m running just stopped working

glossy pebble
#

Well I did /reload a few times

#

But I don’t think that would have broken the datapack

glossy pebble
#

I still kinda of want to disable them to see if they are affecting the datapack

fleet rivet
#

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.

glossy pebble
#

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?

glossy pebble
#

Turns out it had nothing to do with fabric

glossy pebble
#

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

barren rover
#

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

glossy pebble
#

well it keeps on occuring on the console

fleet rivet
#

9/10 modded Minecraft server will get that warning, yes.

#

Safe to ignore unless there's issues in game, like Seb said

glossy pebble
#

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

empty lotus
glossy pebble
#

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?

glossy pebble
#

also is doing /datapack disable (datapack name) the same as removing the datapack from the datapack folder?

small sundial
#

No. There are several technical differences.

frigid junco
glossy pebble
#

Alr I’ll remove it and see if there are any changes

#

But that will probably have to wait cuz I have a 14 hour flight

glossy pebble
#

I feel like these performance issues are linked to my player, rather than issues with the server or datapacks

#

Cuz it seems like the datapack commands take a long time to run only for me, but not for my friends.