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

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.14.4
    • Minecraft 1.13.2
    • None
    • Unconfirmed
    • Performance

      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).

       

       

        1. crash-2019-03-06_13.06.06-client.txt
          7 kB
          [Mojang] Matthew Gatland
        2. minecraft server cpu.png
          48 kB
          [Mojang] Matthew Gatland
        3. profile-results-2019-03-05_08.24.02.txt
          79 kB
          [Mojang] Matthew Gatland

            Unassigned Unassigned
            mgatland [Mojang] Matthew Gatland
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: