stickyakp.blogg.se

Linux monitor memory usage of a process
Linux monitor memory usage of a process










linux monitor memory usage of a process

Procpath can also visualise RSS of the target process into an SVG out of the box like this: $ procpath plot -d tgt.sqlite -f tgt.svg -q rss -p $PID Using a SQLite GUI can be a more convenient to explore and query the database (e.g. $ sqlite3 tgt.sqlite "SELECT ts, stat_rss * 4 rss_kib FROM record WHERE stat_pid = $PID" When you think it has recorded enough datapoints, Ctrl+C it and this will give you the recordings. By default it makes a recording per 10 seconds (for the target process, its ancestors and descendants).

linux monitor memory usage of a process

In the simplest case you point it to the PID of interest and let it record its Procfs metrics including Resident Set Size (RSS). Yes, can achieve exactly this, a bit more with Procpath (author here). I want to monitor memory usage of a process, and I want this data to be logged.












Linux monitor memory usage of a process