# I seem to have a memory leak except when... wait for it... I'm profiling memory

**URL:** <https://forums.unrealengine.com/t/i-seem-to-have-a-memory-leak-except-when-wait-for-it-im-profiling-memory/488736>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** memory-leak, profiling, memory-usage, unreal-engine, memory, Packaging, question\
**Created:** [September 13, 2021, 4:11pm UTC](https://forums.unrealengine.com/t/i-seem-to-have-a-memory-leak-except-when-wait-for-it-im-profiling-memory/488736 "2021-09-13T16:11:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmmmGoodDinner](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmmmGoodDinner](https://forums.unrealengine.com/u/mmmmGoodDinner)\
**Post date:** [September 13, 2021, 4:11pm UTC](https://forums.unrealengine.com/t/i-seem-to-have-a-memory-leak-except-when-wait-for-it-im-profiling-memory/488736/1 "2021-09-13T16:11:12Z")

</div>

If I package my UE4 game in shipping mode and then run the packaged game, I seem to have a memory leak and it starts going up to the 2000-3000 MB range and sometimes even past 10,000MB!

When I deploy my game in development mode and then run the game from the windows command prompt with low level memory enabled (-llm as a command line argument), the memory usage never passes 600MB.

What the heck!? What could possibly be going on here where LLM enabled is preventing a memory leak but otherwise there is extreme memory usage? I thought I would be able to use stat LLM to figure out what my memory issue is but I don’t have a memory issue when LLM is enabled.

Any help would be mega appreciated.

---

<div class="post-metadata">

**Author:** ![user\_e1e82e24d87d2a97544f9d9e9e9e340e2626be24aabba48baa57eb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_e1e82e24d87d2a97544f9d9e9e9e340e2626be24aabba48baa57eb](https://forums.unrealengine.com/u/user_e1e82e24d87d2a97544f9d9e9e9e340e2626be24aabba48baa57eb)\
**Post date:** [April 13, 2026, 7:08am UTC](https://forums.unrealengine.com/t/i-seem-to-have-a-memory-leak-except-when-wait-for-it-im-profiling-memory/488736/2 "2026-04-13T07:08:15Z")

</div>

It doesn’t work “-llm” Arguments.. But this Post help me to find out, Turning on the MemoryInsight makes my Packaging Memory 1000MB to 300 MB
