# UnloadLevelInstance Memory Accumulation

**URL:** <https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137>\
**Category:** Blueprint\
**Tags:** memory-leak, Level-Streaming, level-load, unreal-engine, question\
**Created:** [September 6, 2025, 2:58am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137 "2025-09-06T02:58:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenrongbin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chenrongbin](https://forums.unrealengine.com/u/chenrongbin)\
**Post date:** [September 6, 2025, 2:58am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137/1 "2025-09-06T02:58:14Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/d/d4d27c2c90b1cc6fa018dbd14ec709b09e623b4a.png)

I tested `LoadLevelInstance` and `Unload` using an empty project. This is the only code in the level instance, and no modifications have been made to the built-in `StartContent` level. I tested the packages for versions 5.4 and 5.5 in this way, and then obtained LLM tables using the `-LLM` and `-LLMCSV` flags. However, the memory usage for the `FMallocUnused` item is inconsistent.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/5/ef5f31782ac2576b1478610a6df66e3d6e0469ce.png)

5.5

The graph in Figure 5.5 shows that a cumulative increase of 200M in memory (virtual memory) occurred within 400 seconds

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/8/d/88dbb4bd0119c195d3b6a7cb1d67ae1758d364dd.png)

5.4

It can be observed that the memory of the package FMallocUnsed in version 5.5 has been accumulating, whereas there is no such issue in version 5.4

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 6, 2025, 7:41am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137/2 "2025-09-06T07:41:30Z")

</div>

Give it a go after packaging.

I assume it works the same way as the texture streaming pool. For some reason, that is also not managed in the editor, but is in a packaged game.

---

<div class="post-metadata">

**Author:** ![chenrongbin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chenrongbin](https://forums.unrealengine.com/u/chenrongbin)\
**Post date:** [September 8, 2025, 2:11am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137/3 "2025-09-08T02:11:12Z")

</div>

Thank you for your reply, but this is the result of the packaged run

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 8, 2025, 6:16am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137/4 "2025-09-08T06:16:02Z")

</div>

Darn.

I’d be interested to hear if you find any more info on this. I’m also using ‘load level instance’, but haven’t run into any problems after playing for quite a while ( and each level is about 4GB at the moment )…

---

<div class="post-metadata">

**Author:** ![chenrongbin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@chenrongbin](https://forums.unrealengine.com/u/chenrongbin)\
**Post date:** [September 8, 2025, 6:25am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137/5 "2025-09-08T06:25:27Z")

</div>

Fortunately, this issue only occurs in version 5.5. When I tested with version 5.6, everything was normal. However, my official project cannot be updated to version 5.6 soon

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [September 8, 2025, 6:30am UTC](https://forums.unrealengine.com/t/unloadlevelinstance-memory-accumulation/2654137/6 "2025-09-08T06:30:39Z")

</div>

Ah, good to know ( about 5.6 ). Good luck.
