Difference between revisions of "Resource Monitoring Tools"

From Steak Wiki
Jump to navigationJump to search
Line 24: Line 24:
 
  $ ltrace -p -pidhere-
 
  $ ltrace -p -pidhere-
  
See what a program is doing. (Note: not available on arm debrepos)
+
See what a program is doing. (Note: not available on ARM deb repos)

Revision as of 17:39, 7 August 2020

There are programs available to watch various aspects of your system.

iftop

See active internet connections. e.g.

# iftop -i eth1

Will show you websites that don't close a connection, when the tab is left open. A privacy and security nightmare. This is a reason why Javascript is bad.

vmstat

See RAM usage. Can be watched, to monitor swapping. e.g.

$ vmstat 3

Leave it running. It will update every 3 seconds.

iotop

See HDD accesses. e.g.

# iotop --only
# iotop -o

only flag will show active processes only

Monitor Library Reads from PID

$ ltrace -p -pidhere-

See what a program is doing. (Note: not available on ARM deb repos)