# Debugging High Memory Usage

**URL:** <https://phaser.discourse.group/t/debugging-high-memory-usage/8161>\
**Category:** Phaser 3\
**Created:** [November 19, 2020, 7:53am UTC](https://phaser.discourse.group/t/debugging-high-memory-usage/8161 "2020-11-19T07:53:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksmandersen](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/ksmandersen/32/4371_2.png) [@ksmandersen](https://phaser.discourse.group/u/ksmandersen)\
**Post date:** [November 19, 2020, 7:53am UTC](https://phaser.discourse.group/t/debugging-high-memory-usage/8161/1 "2020-11-19T07:53:18Z")

</div>

HI 👋

I am working an a pretty large game containing lots of scenes and sprite-based gameobjects. I am running in to some memory limitations on mobile devices, specifically tablets with ~2 GB memory. Working with the Chrome Web Developer Tools it looks like there only around ~20 MB of stuff on the heap. However if I profile the running app on an iPad e.g I can see the com.apple.WebKit.WebContent process is taking up 1.3 Gb of memory from just launching a few scenes. Eventually the process gets killed by the OS causing the webview to restart. Same thing happens in the android app. I tried to load the game as a straight webpage instead, and the same thing happens there. So it is nothing pertaining to the cordova wrapper app.

Any insight into debugging issues with high amount of RAM usage much appriciated 🙌

---

<div class="post-metadata">

**Author:** ![justintien](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@justintien](https://phaser.discourse.group/u/justintien)\
**Post date:** [December 22, 2020, 9:02am UTC](https://phaser.discourse.group/t/debugging-high-memory-usage/8161/2 "2020-12-22T09:02:53Z")

</div>

I also encountered this problem,  
and I wrote a test

> <https://github.com/photonstorm/phaser/issues/5456>
>
> Version
> 
> Phaser Version: 3.22.0 & 3.50.0
> 
> Operating system: macos catalina 10.15.7
> 
> Browser: chrome Version 87.0.4280.88 (Official Build) (x86\_64)
> Description
> There is a problem with all resources...

phaser3 switch scene, the memory have no release…
