Memory monitor

From Wiki

Jump to: navigation, search

Contents

Introduction

This is a small Qt4 based application for detailed monitoring of the memory usage of a running Linux application. Any application can be monitored by picking it from a dropdown list. Memory monitor will sample the app each second and draw a plot of memory usage over time. It can also show mapped memory.

The data is extracted from various process specific files in /proc/. A kernel version of 2.6.14 or higher is required, as most of the data needed was added to the /proc/ filesystem in this version.

Download and installation

The newest version

Older versions

To compile you will need Qt 4.3 or newer. It was developed with Qt 4.4.0 but works with 4.3.x too (and probably also newer versions). To compile do:

% tar zxf memory-monitor-1.1.tar.gz
% cd memory-monitor-1.1
% /path/to/qt4/bin/qmake
% make

You will end up with a binary memory-monitor. Copy it wherever you want, it needs no extra files or installation.

Have fun!

License

Memory monitor is licensed under the GPL.


Screenshots

A screenshot showing a memory plot from running Firefox for 10 minutes or so. A sample of the memory usage is taken every second and the plot is continuously updated. By hovering the mouse over the plot you can see information for a particular point in time, in this example hovering where most memory was used.

Image:memory-monitor-plot.png

The screenshot below shows a small part of the memory map for Firefox. You can view the loaded libraries and other mapped data. This application has quite a few of them.

Image:memory-monitor-maps.png


To do and bugs

  • RSS should be: RSS-shared as RSS already includes shared.
Personal tools