mojira.dev

GaborV

Assigned

No issues.

Reported

MC-271756 Java server lags insanely hard when the GC frees up RAM Plausible MC-271687 My java server lags insanely hard when the GC frees up ram Invalid

Comments

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.

No it didn’t help, i was already running it with a different java (not the minecraft default java)

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

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

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.

Yes, the issue still present in 1.21, and no, those options didn't fix the issue

Tried those JVM arguments, sadly it still didn't fix it

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.

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

Okay, created a new issue

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?

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