Your application is using more memory, It is still running instead...

It is still running instead of crashing, but it is feels slow, whyπ
Letβs take a real-world scenario.
You have a containerized application running. Over time, the app grows, caches more data, and loads more into memory.
At some point, the app becomes slower, though it doesn't crash.
This happens because the Operating System uses paging behind the scenes.
What is paging?
Paging is a method the OS uses to effectively handle the RAM.
Here is how it works
- The system will divide the memory of a program (virtual memory) into small fixed size blocks called pages
- The actual physical memory is also divided into fixed size blocks called frames.
- The OS maintains a table to map these pages and frames.
- So, if a program performs an operation, pages will be loaded into frames.
- But, if it does not have enough memory, the OS moves some of the old pages from memory to storage (Swap)
So, one of the reason that your app as well as the entire system seem slow is because of the excessive paging.
14,000+ DevOps engineers read our Devops newsletter
ππΌπΆπ» ππ²πΏπ² (πππ π³πΏπ²π²): newsletter.devopscube.com/subscribe
We send deep dives, practical tips, and guides straight to your inbox.
#linux #devops
