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

Java server lags insanely hard when the GC frees up RAM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.6, 1.21
    • None
    • Plausible
    • Dedicated Server, Performance
    • Important
    • Platform

      Hi! I don't know where else to report this, didn't find anything useful on the internet, so i decided as a last try to write here.
      My issue is that when my server's GC frees up the ram, or even just while running, it gets insanely laggy sometimes. Sending the warnings "Can't keep up! Is the server overloaded? Running 6980ms or 139 ticks behind" like this. I gave the server 16GB ram, but as i noticed its not using my cpu fully, only a few cores.

      Here are the specs:

      CPU: AMD Ryzen 7 5800X3D
      Motherboard: MSI B550-A-PRO
      RAM: 2x16GB Corsair Vengeance 3600MHz CL16
      GPU: AMD Radeon RX6600XT
      SSD: Apacer AS2280Q4 1TB

      I really hope this is the right place to post this, and hoping to find a solution.

      The lags on the normal server were much worse than on papermc, happened every minute, rather than 2-3 minutes on paper)

      Performance logs of the original server file attached, every other information is the same

            Unassigned Unassigned
            GaborV GaborV
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: