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

Memory leak and crash while no players online

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.14.3
    • None
    • Linode instance: Linode 4GB: 2 CPU, 80GB Storage, 4GB RAM
      OS: Debian 9
    • Unconfirmed
    • (Unassigned)

      While no players were online, the CPU usage spiked and the server crashed with an OutOfMemoryError.

      [10:43:28] [Server thread/ERROR]: Encountered an unexpected exception
      m: Exception ticking world
              at net.minecraft.server.MinecraftServer.b(SourceFile:828) ~[minecraft_1_14_3.jar:?]
              at ui.b(SourceFile:343) ~[minecraft_1_14_3.jar:?]
              at net.minecraft.server.MinecraftServer.a(SourceFile:763) ~[minecraft_1_14_3.jar:?]
              at net.minecraft.server.MinecraftServer.run(SourceFile:631) [minecraft_1_14_3.jar:?]
              at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
      Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
              at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:328) ~[?:1.8.0_211]
              at java.util.concurrent.ConcurrentLinkedQueue.add(ConcurrentLinkedQueue.java:297) ~[?:1.8.0_211]
              at com.google.common.cache.LocalCache$Segment.recordRead(LocalCache.java:2664) ~[minecraft_1_14_3.jar:?]
              at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2199) ~[minecraft_1_14_3.jar:?]
              at com.google.common.cache.LocalCache.get(LocalCache.java:4154) ~[minecraft_1_14_3.jar:?]
              at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) ~[minecraft_1_14_3.jar:?]
              at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) ~[minecraft_1_14_3.jar:?]
              at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) ~[minecraft_1_14_3.jar:?]
              at bmq.a(SourceFile:511) ~[minecraft_1_14_3.jar:?]
              at bmq.d(SourceFile:312) ~[minecraft_1_14_3.jar:?]
              at bvo.e(SourceFile:152) ~[minecraft_1_14_3.jar:?]
              at bhw.a(SourceFile:60) ~[minecraft_1_14_3.jar:?]
              at vg.a(SourceFile:362) ~[minecraft_1_14_3.jar:?]
              at vg$$Lambda$2252/813488659.accept(Unknown Source) ~[?:?]
              at it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap$1.forEach(Long2ObjectLinkedOpenHashMap.java:1661) ~[minecraft_1_14_3.jar:?]
              at com.google.common.collect.Iterables$UnmodifiableIterable.forEach(Iterables.java:105) ~[minecraft_1_14_3.jar:?]
              at vg.n(SourceFile:327) ~[minecraft_1_14_3.jar:?]
              at vg.a(SourceFile:296) ~[minecraft_1_14_3.jar:?]
              at vi.a(SourceFile:310) ~[minecraft_1_14_3.jar:?]
              at net.minecraft.server.MinecraftServer.b(SourceFile:824) ~[minecraft_1_14_3.jar:?]
              ... 4 more
      [10:43:28] [Server thread/ERROR]: This crash report has been saved to: /home/minecraft/minecraft_1_14/./crash-reports/crash-2019-07-01_10.43.28-server.txt
      

      I've attached the crash report and a graph of the CPU usage. You can see where the CPU usage is "normally" pegged at 100%, then is spikes and crashes.

      This crash also broke my auto-restart script. I'm using the exit code of the java process to detect crashes. On a non-zero exit code, I restart the server. On a zero exit code, I leave it shut down. A crash like this should exit with some sort of non-zero exit code.

            Unassigned Unassigned
            haydenmuhl Hayden Muhl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: