Memory leak by Sodium
Madis0 opened this issue ยท 1 comments
Describe the bug
Current workaround: switch to a different window, Minecraft will free up memory when it is in the background.
There have been three reports of a memory leak/high CPU usage, only from MultiMC users. Please comment if you can also reproduce it.
Expected behavior
No leak/high CPU usage
Observed/actual behavior
One or multiple of the following:
- High RAM usage
- High CPU usage
- Game freeze
- Decreasing FPS
Steps To Reproduce
A single cause is not yet known, as the reproduction methods are different:
- having MC open in the background
- having an instance open for an hour
- loading a different dimension
I was able to reproduce the third one, once, but was not able to pinpoint the cause.
Modpack version
2.2.1
Launcher
MultiMC
Install method
Fresh install/new profile
Additional context
It has been discussed that the problem may have been introduced in v2.2.0 or v2.2.1.
I believe the cause may be EBE or the Java flags, but I haven't reverted either as the benefits seem to overweigh the issues, and I haven't been able to consistently reproduce the issue so far.
Current workaround (but also beneficial for everyone) that will be included in 2.3.0: enable "Run GC on unfocus" in Dynamic FPS settings.
Edit: I've heard the issue may be caused by Sodium, on servers that obfuscate ores (anti-xray). CaffeineMC/sodium-fabric#872 (comment)
Edit 2: newer issue - CaffeineMC/sodium-fabric#953