Wiki 9Minecraft Wiki 9Minecraft
Memory Sweep Wiki › Guides › How to Adjust the Memory Usage Threshold

How to Adjust the Memory Usage Threshold

Memory Sweep Mod includes a customizable memory usage threshold, which is set to 90% by default. Adjusting this percentage lets you control how full your allocated RAM is allowed to get with respect to automatic garbage collection.

Choosing the Right Percentage

Press F3 during gameplay and watch the memory readout in the top-right corner during lag spikes:

  • Lowering the threshold below 90%: If your game begins stuttering when memory hits 75% or 80%, lowering the threshold lets the mod clean up unused memory earlier, before your RAM nears capacity.
  • Keeping or raising the threshold: If your game runs smoothly until RAM is almost completely full, leaving the threshold at 90% avoids unnecessary sweeps.

Modifying the Threshold Setting

To change the target percentage:

1. Open the mod's customizable settings via your in-game Mods configuration screen, or open your Minecraft folder and edit Memory Sweep Mod's file inside the config folder.

2. Locate the memory usage threshold option, which shows the default value corresponding to 90%.

3. Enter your new desired percentage value.

4. Save the setting and restart Minecraft if you modified the file externally.

Afterward, play as usual and occasionally check the F3 screen to confirm that garbage collection is keeping your memory usage within a comfortable range.