procweb-rust

Crates.ioprocweb-rust
lib.rsprocweb-rust
version0.1.3
sourcesrc
created_at2023-03-22 20:55:21.929663
updated_at2023-03-28 21:07:19.882402
descriptionA binary providing a web interface to monitor the resources used by a process on Linux.
homepagehttps://bugfreeblog.duckdns.org/
repository
max_upload_size
id817484
size2,012,146
Luca Carlon (carlonluca)

documentation

README

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/
Commit count: 0

cargo fmt