promotional bannermobile promotional banner

Instances Memory Leak Fix

Fixes known memory leak when destroying instances.

Simple fix to remove destroyed instances from RAM memory.

Instances are known to cause a memory issue. They remain in memory even after being destroyed. This is due to a problem with EntityHandlers not getting cleaned up, and holding references to the instance world forcing the world to remain in memory. This patch listens to the RemoveWorldEvent and ensures proper disposal of the instance.

This mod is targeted at server owners whose games rely on on-demand instance creation and deletion, and should significantly decrease memory-related crashes on your servers.

The Instances Memory Leak Fix Team

profile avatar
  • 2
    Projects
  • 379
    Downloads

More from HeroTweaks

  • Server Network Manager project image

    Server Network Manager

    • 129
    • Mods

    Hytale server network solution that powers multi-server networking, seamless player transfers, and instance-based arena matchmaking using a Redis-based communication system.

    • 129
    • February 23, 2026
    • Mods
    • +2
  • Server Network Manager project image

    Server Network Manager

    • 129
    • Mods

    Hytale server network solution that powers multi-server networking, seamless player transfers, and instance-based arena matchmaking using a Redis-based communication system.

    • 129
    • February 23, 2026
    • Mods
    • +2