Coffee Addiction
1 min readOct 25, 2019

--

What Is a Memory Leak?

Let’s start from the beginning.

A memory leak happens when an object that is no longer used is still referenced in-memory by another object. It is particularly troublesome in the Android world since Android devices have a very limited amount of memory, sometimes as little as 16 MB. As much as you may think this is enough to run an application, believe me, you can run over this limit rather quickly.

Eating up the available memory is the most direct result, but there’s another interesting side effect of running low on memory: the Garbage Collector (GC) will start triggering more frequently. When the GC triggers, the world stops. An app needs to render a frame every 16 milliseconds, and with the Garbage Collector running, this framerate can be compromised.

Thanks for reading so far. If you found this post useful, I would really appreciate it if you can recommend my post (by clicking the clap button) so others can find it too. Also, connect with me on LinkedIn.

--

--

Coffee Addiction

Fullstack developer and AWS certified solution architect. I write technical content and sometimes write some random stuff.