Memory leak on LG

After 10 min using an application, have an error from LG about memory leaks. On Samsung work fine. Did anybody have this issue or has ideas on how to fix this?

They probably have different amounts of memory available. Try changing memoryPressure setting:

Also you can manually clean up memory using stage.gc();


This helped me, thank you

1 Like

Hi @chiefcll, do you have another idea, because memoryPressure and stage.gc help only improve for 15 min

If that is the case your app is probably using too much memory over time. I usually debug in a web browser by taking memory snapshots and looking at total memory usage. See what happens as you move around and if you’re cleaning up JS objects as the app is used. Maybe you’re storing AJAX responses you don’t need anymore?

1 Like