mojira.dev
MC-138550

High ms ticks in 1.14+, player cannot interact with world normally

Mod Notice

We are now closing this issue, because it has grown too indistinct. Note that this does not mean that we think performance is perfect - we will keep working on performance optimizations for future versions.

However, this Jira issue in specific has outgrown its usefulness, containing a range of different concerns all mixed together. If you still experience performance problems, please identify what the scenario is and submit specific bugs, so separate issues can be tracked separately. Also please make sure to include debug reports and all relevant information when reporting such bugs.

Note: Jira is not a discussion forum. If you have performance issues, follow the instructions above rather than posting further comments on this issue.

This bug can have multiple symptoms, including, but not limited to:

  • Blocks reappear after being mined

  • Entities don't move

  • Chunks don't load and when entering them, the player falls out of the world

  • Cannot open chests and other containers

  • Cannot interact with entities

Also, when this issue occurs, the a line like this:

Can't keep up! Is the server overloaded? Running 5000ms or 100 ticks behind

will be printed occasionally in the game console.

Sometimes this issue will become so bad that it will crash the server. In that case the crash report usually has a line like Description: Watching Server.

If you experience this issue, please run a complete debug dump by following these steps:

  1. Generate a debug profiling (.txt file):

    • Press F3 + L

Those files will be generated in the debug folder of your Minecraft instance. If you are on singleplayer, access your game directory. If you are on server, report to your system administrator. If you don't have op permission, either ask your server admin to perform the dump, or if you are on singleplayer, open your world to LAN with cheats on.

The bug

When my "ms ticks" is higher than normal, i can't place/remove blocks, drop/pick up items, use items like a carrot on a stick. Delay between my action and world's reaction are extremely high.

Upd: in snapshot 18w45a ms ticks is still really high in normal world when mobs are spawning. Chunks stops rendering sometimes, items cannot be picked up etc.

Linked issues

MC-10970 Snooper Settings mod detection doesnt work Resolved MC-10976 Async FileSavingProcess will cause chunk overwrites/data loss ( Fix included ) Resolved MC-138390 Chests do not close Resolved MC-138483 18w43c In-game Consistent Lag Resolved MC-138622 The respawn button does not work Resolved

Attachments

Comments 168

Can confirm! My game running with 25-30 ms, the entities walking in the world smoothly but I cannot hit them, shoot arrows, throw potions, eggs or snowballs.

"ms ticks" should be at most 50 (it is an indicator of tick performance). If not, then the game will lag and there will be a delay between when processed actions are presented to the client.

In 18w43c the game runned correctly. Now in this snapshot my game is running with 25-30 ms(not this is the problem, the game ticks are fine) but player actions are delaying for about 5-10 minutes. The entities walking smoothly, the game ticks are fine but something wrong with the player-server actions.

Of course, if your "ms ticks" will be too high, the game will lag. But in my case, if ms ticks are too high, the game will completely stop reacting on my actions.

PS - it only happens to 18w44a version.

PPS - in previous snapshot same thing was for the chunk rendering.

Here's a video about this: https://youtu.be/dD2CStDSEqs

158 more comments

Please do not comment if you don't have a full debug dump to add. Use the following template to comment any further:

Game version:
Debug profiling: "link to"
Debug report: "link to"

Refer to the notice in the description and this comment

Game version: 1.14.4 Prerelease 2
Debug profiling:

[media]


Debug report:

[media]

Screenshot:

[media]


Observations: This shows relatively mild but still noticeable TPS lag. I have found distinct lag spikes whenever I crossed a chunk boundary. The screenshot shows an example. My Nether hub is decorated with chunk boundaries marked with stone bricks and numbered with banners. Whenever I crossed a stone brick marker (chunk boundary) there was a brief lag spike. Sometimes this lag spike was quite noticeable. See screenshot.
At one point during testing (probably not in profile) I paused the game briefly by pressing Escape. After I resumed the game the TPS display (bottom right) immediately showed a nearly 50% reduction in processing time per tick. This was probably because I ended the profiling, which adds to the TPS processing.

Game version: 1.14.4 Prerelease 2
Debug profiling:

[media]


Debug report:

[media]


Observations: This shows more severe TPS lag from the same world and dimension as my previous comment. Lag spikes still occur when crossing chunk boundaries.

Game version: 1.14.4 Pre-Release 6

Debug profiling: 

[media]

Debug report: 

[media]

Observations: The local world I play on started reporting it couldn't keep up, even immediately upon launching, before any players connected.

I started suspecting it was due to my kids liking to farm lots of animals... one of them had ~1500 pigs in a fenced area 17x30 (~510 blocks).

So, I /kill'd most of the pigs reducing it to a much smaller number and now the server runs fine. The attached profile is before I removed the pigs.  There is still a large pen of chickens in the world.

If Minecraft's movement AI has an iterative move solver, and there are no solutions, could that be causing the problem? If so, perhaps an "overpopulation damage" could be applied when there are > X animal units per block (or too many collisions during movement solving) so it self corrects?

We are now closing this issue, because it has grown too indistinct. Note that this does not mean that we think performance is perfect - we will keep working on performance optimizations for future versions.

However, this JIRA issue in specific has outgrown its usefulness, containing a range of different concerns all mixed together. If you still experience performance problems, please identify what the scenario is and submit specific bugs, so separate issues can be tracked separately. Also please make sure to include debug reports and all relevant information when reporting such bugs.

Andrey

(Unassigned)

Confirmed

Performance

Minecraft 18w44a, Minecraft 18w45a, Minecraft 18w47a, Minecraft 18w47b, Minecraft 18w48a, ..., Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3

Retrieved