GaborV
- GaborV
- JIRAUSER778555
- Europe/Stockholm
- Yes
- No
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 1TBI 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
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 1TBI 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
I've set this bug report to "plausible" so that Mojang can investigate, as this could be a bad memory leak somewhere.
Important information from the comments not mentioned in the bug report itself:
- Happens regardless of world, although for less busy worlds the memory grows slower
- Does not happen if server runs on Linux (appears to be a Windows-only issue)
- Happens regardless of used Java runtime
- Less allocated RAM makes the issue worse
@GaborV, regarding your comment "Only thing that helped was running the server on linux", I'm assuming you were running it on the same hardware but with different OS? If not, what hardware did you use to run it on Linux?
Also if there's any information that you think could be useful for investigating this, please provide it.
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
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
Thanks for the reply, I'll try these as soon as possible. I use the jvm flag "-XX:ActiveProcessorCount=8" because as i noticed these lags were a bit less frequent
I also found out this only happens on Windows. When I ran the server and the client both on Arch Linux I haven't noticed these lags. Plus i tried that i ran the client on my pc, and the server on a lower end laptop (8gb ddr3 ram, gave 7gb to the server, the cpu is i5-4200U), and i haven't noticed these lags there neither.
Tried those JVM arguments, sadly it still didn't fix it
Yes, the issue still present in 1.21, and no, those options didn't fix the issue
I'll test it on a flat world soon. No this isn't world specific issue, happens on every world i create, and there aren't any datapacks. The server settings are the default settings, i haven't changed anything. Yes it happens on every java runtime on windows. I don't remember if i already said this, but it might be an issue with the windows java runtime only. Since I've tested it on Arch, and Ubuntu and it ran really fine there. Even on a low end system.
It happens on a flat world too, but less noticable since the GC doesn't empty much amount in such a short time, like a normal world would
Yes it happens while completely idle too, only happens when thr gc empties (ram usage goes down), and no, decteasing the ram doesn’t help at all, only makes it worse. Only thing that helped was running the server on linux
No it didn’t help, i was already running it with a different java (not the minecraft default java)
It seems to me, yes this is still persistent on the latest version. Only on Windows obviously, when I have more time i'll try to mess with the settings to see if anything changes.