mojira.dev
MC-271191

Poor saving performance due to large amount of item frames

I was running into a lag issue on my server that I first noticed around 1.20.4, and I narrowed it down to a map area I had ( in dark oak hut ). This issue still occurs in 1.20.5.

The map area within these chunks cause major lag during world save or whenever the server autosaves (around every 5 minutes)

I have trimmed out irrelevant parts of my server's world for privacy reasons.

The lag is most noticeable while riding in a minecart and running the /save-all command.

 

Steps to reproduce:

  1. Setup a vanilla minecraft server with this world file (attached and zipped)

  2. Join server, build a little minecart track loop, and ride it while running the /save-all command.

 

You'll notice that the minecart will freeze in place for a couple seconds, and the server console will show a message "Can't keep up! Is the server overloaded? Running 2000ms or 40 ticks behind" or something similar.

This affects the server nonstop if the chunks are part of spawn chunks, and if not, only when these chunks are loaded.

Of course, breaking the item frames fixes the lag issue after a couple "/save-all"s.

Linked issues

Attachments

Comments 3

We do not have enough information to find the cause of this issue.

Please run a performance profile during saving as follows:

Run the command /perf start to create a profiling report for the server. In case you do not have the permission to run this command, make sure that you're a server operator.
Once profiling has finished, please attach the generated .zip file from debug/profiling/<DATE>.zip of the server folder.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Ran this on 1.20.6 server since that was the version available at minecraft.net/download (issue still occurs in this version):

[media]

Issue with "newAi", I would remove the first zip file.

s684w

gegy

Confirmed

Platform

Important

Performance

1.20.5

24w33a

Retrieved