promotional bannermobile promotional banner

MemGuard

Reduces RAM usage in large modpacks and servers by caching NBT strings, monitoring memory usage, and triggering garbage collection at optimal times.
Back to Files

MemGuardForge v1.0.5

File namememguard-forge-1.20.1-1.0.5.jar
Uploader
SeishiroNagiSeishiroNagi
Uploaded
Oct 8, 2026
Downloads
752
Size
5.1 KB
Mod Loaders
Forge
File ID
9098627
Type
R
Release
Supported game versions
  • 1.20.6
  • 1.20.5
  • 1.20.4
  • 1.20.3
  • 1.20.2
  • 1.20.1
  • 1.20

Curse Maven Snippet

Forge

implementation "curse.maven:memorymod-1468440:9098627"

Learn more about Curse Maven

What's new

MemGuardForge v1.0.5 (Forge 1.20.x) - Performance fix: no more lag spikes

  • Removed all forced garbage collection (System.gc()). Version 1.0.3 forced a full GC every 5 minutes on the server thread and after every texture atlas upload, causing freezes of 0.5-3 s in large modpacks. Tested in a 364-mod pack: the 609 ms freeze every 5 minutes is gone (largest GC pause is now a normal 128 ms).
  • Fixed the NBT string cache: it now really reuses one shared instance per repeated short string, without a global lock (lock-free, bounded to 4096 entries).
  • Lighter memory monitor: one status line every 30 minutes, warning above 85% heap use.

Drop-in replacement for 1.0.3 (same mod id memguard). Recommended for every Forge user.

This mod has no related projects