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

My java server lags insanely hard when the GC frees up ram

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.6
    • None
    • Server is running on Java 21
    • Unconfirmed
    • (Unassigned)

      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.

      EDIT: Forgot to mention that sometimes the server writes insanely fast to the memory, around 200MB/s. And even with 0 players online the server still goes up to even 8GB of RAM usage

      EDIT2: Added performance logs

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

              Created:
              Updated:
              Resolved: