Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-145380

Lag and high CPU use even with no players online, from the end, caused by 'chunkSource'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.13.2
    • Fix Version/s: 1.14.4
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Category:
      Performance

      Description

      Problem:

      Our minecraft server is running slowly and using 100% CPU, even when no players are online.

      What happened:

      We built an ice road in the End.

      While riding boats along this road, the server started to use a lot of CPU and run slowly. (Down to 1 tick per second!)

      The lag continued after we returned to the main dimension.

      After we all logged off, Minecraft continued to use 100% of the server's CPU until we restarted it. Our server normally uses very little CPU when no players are online.

      Restarting the server fixes it. Returning to the end makes the problem start again.

      I have attached profiler results. These were recorded when I was in the main dimension. Note that the End dimension is still at 91%. Most of this comes from 'chunkSource' and 'tickPending'.

      Steps to reproduce:

      Download our world here: https://www.dropbox.com/s/86sm43xd6cpg0xo/end-lag-test-world.zip?dl=0

      Go to the End.

      Teleport to -3853 106 0

      Ride a boat back towards 0 0 0 (or just run and jump about 30 jumps)

      You should notice some lag (i.e. boat position being reset every few seconds, or a slow server tick rate in the F3 debug info if running a local server) after a few seconds. The lag might come and go a few times each minute.

      You can now use /debug start and /debug stop to record what is slow with the profiler.

      If you return to the main dimension (/tp 0 64 0), you will see that the lag continues. The profiler will show that the lag is coming from DIM1 (the End).

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mgatland Matthew Gatland
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: