From the course: Programming Foundations: Memory, Pointers, and Garbage Collection

Unlock the full course today

Join today to access over 25,200 courses taught by industry experts.

Out of Memory error

Out of Memory error

- [Instructor] The out-of-memory error occurs when you're, well, out of memory. This happens when the system cannot allocate a requested memory block anymore. Usually, before this happens, the application starts to slow down first. Some applications that have memory leak will request a restart every now and then, sometimes even only every few weeks or months, in order to free the unnecessarily kept memory and make the application perform well again. If you're not running the application on a memory restricted system, for example in the cloud with a lot of resources available, the sign might not be a slow application but an unnecessarily high cloud provider bill. The slowing down is one of the signs that your application is having a memory leak, and it may end in an out-of-memory error when it's not restarted to boost performance again. Part of the reason that the application gets slow before running out of memory is due…

Contents