Monitor Linux Process Memory Usage Using C/C++

Contents

  1. Overview

Overview

Although it is relatively easy to obtain memory usage statistics in Linux, it can be non-trivial to get a good idea on the exact memory that a particular process is using.

Here is one method that will provide you with the virtual and physical memory that the Linux process which calls this code is using (the memory used by yourself):

 

 

Posted: August 26th, 2017 at 6:20 am
Last Updated on: August 26th, 2017 at 6:26 am