mojira.dev
MC-271687

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

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

Attachments

Comments 6

We do not have enough information to find the cause of this issue.

When the lag occurs, please run the command /perf start to create a profiling report for the server. In case you do not have the permission to run this command, make sure that you're a server operator.
Once profiling has finished, please attach the generated .zip file from debug/profiling/<DATE>.zip of the server folder.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Hi! Added going to add the folders to the post now. I don't know if any lag happened when it recorded because the 10 second it records is really short for it to happen

Thank you for your report!
However, this issue is Invalid.

Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.

  • A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.

  • Any plugin issues need to be addressed to the creator of the plugin or resource pack.

  • If you have problems on large servers like Hypixel, please contact them first as they run modified server software.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

I used a PaperMC server because on the normal server, it was even more laggier, but i will submit it with that. Should i create those performance logs for that too?

Okay, created a new issue

GaborV

(Unassigned)

Unconfirmed

(Unassigned)

1.20.6

Retrieved