#process #monitor #web-interface #embedded-development #development-tools #command-line-utilities

app procweb-rust

A binary providing a web interface to monitor the resources used by a process on Linux

4 releases

0.1.3 Mar 28, 2023
0.1.2 Mar 23, 2023
0.1.1 Mar 22, 2023
0.1.0 Mar 22, 2023

#702 in Filesystem

Download history 82/week @ 2024-02-21 23/week @ 2024-02-28 1/week @ 2024-03-06 8/week @ 2024-03-13

114 downloads per month

GPL-3.0+

2MB
490 lines

Procweb

Procweb is a process that can be run to monitor another process. Procweb runs and samples the process periodically retrieving these values:

  • State;
  • CPU usage;
  • Resident set size;
  • Virtual memory size;
  • Total main memory;
  • Total read from disk;
  • Total written to disk;
  • Total read;
  • Total written;
  • Niceness;
  • Number of threads;
  • Uptime;
  • Start time.

Some of these values can be used to draw a chart. Procweb provides a web interface to display data.

Procweb can be used to monitor a process for memory leaks or unexpected behavior during many hours or days of work.

Details

Procweb is a Rust-written process that can be run in background. The process provides a web interface written in TypeScript with Angular which represents data in time. Procweb stores samples without expiration, so it is possible to inspect old data. The web interface can be accessed at http://<ip_addr>:3000.

Usage

To use the crate, simply install it and run by passing the PID of a running process to monitor:

cargo install procweb-rust
procweb-rust 1234

Then open a browser and go to:

http://<ip-addr>:3000/

Dependencies

~20–34MB
~592K SLoC