Since today I noticed "Garbage Collection laggs" in minecraft. There are always small stutters when the RAM is emptied. I've already tried everything from giving other JVM arguments to reinstalling minecraft. I play on 1.15 and have allocated 4GB RAM to minecraft. What can you do there?
PC Specs:
Asus TUF B450 Plus gaming
Ryzen 5 1600x
GSkill aegis 16GB 3000Mhz
GTX 1060 6GB
Driver and BIOS have been updated. Minecraft is on an SSD.
How did you check if the lags are triggered by the garbage collection?
According to the wiki, a revised engine has been used since version 1.15, if the problem did not occur before, I would attribute this to the reporting of an error and hope that this will be fixed in future versions.
You can watch it well in F3. When minecraft has reached the limit of allocated memory, then jumps back to zero and looks around me, the stutter is visible. This happens both on servers (slightly stronger) and in single player (easier).
However, I also have to say it has been since I disassembled my computer. Can it be a hardware failure?
What I forgot to write, I tried 1.14.4 and 1.9.2 (both with Optifine). It's not that bad, but it's still there.
I think an error in the hardware is rather unlikely. It would be more likely that you assembled something wrong, e.g. You have inserted the RAM into the wrong slot or selected any slower connection options for other hardware parts.
In itself, however, it is more the task of the software to ensure that loading the content or releasing it does not cause any visible lag.
Possibly. Can you also counteract the problem with another JRE, but I have little idea about it.
It may also be enough if you set the limit at which the GC starts to drop, so that you have shorter lags more often, so that they are no longer noticeable.
(Whereby that doesn't help much if many data structures are released at once.)
I've already checked RAM. Both sit in the correct slot and work in dual-channel mode. I think reinstalling Windows 10 times wouldn't hurt it? May be that the system shot itself up with updates… For Java I use the latest version in the 64 bit version.
I think reinstalling Windows 10 times wouldn't hurt it?
If you do everything right, you may not.
Another question is whether it is useful.
Maybe the system shot itself up with updates
Since you are probably using Windows, this is something that can't be excluded.
Incidentally, a simple integrity check would be faster than a new installation.
Open an administrative prompt and the command
sfc / scannow
I will try it. Get back to me when it's done.
I ran the scan twice. "Windows Resource Protection has not found any health violations."
Can you actually test Minecraft on a Linux Live USB? Or would it not work because of the missing drivers?
That would be because you would have Linux on your USB stick.
In addition, graphics cards on Linux should have their problems because the drivers are sometimes insufficient.
I suspect the problem is rather a poor implementation on the part of the Minecraft developers.
Hmm okay a shame… Thank you very much for your help!
I noticed something on my PC…
Does what? Can the pc take damage? I didn't notice excitement…
Nothing unusual in the picture.
The left EATX12V connector is only halfway there.
Oh, ok, yes…
Strange that the PC was still running.
Because some component seems to get less power.
Of course, this can also cause lag, depending on which component is affected.
Yes, I thought so too…