https://github.com/rwxd/vmrss
Tool to show the memory usage of a process and its children
https://github.com/rwxd/vmrss
cli memory vmrss
Last synced: 5 months ago
JSON representation
Tool to show the memory usage of a process and its children
- Host: GitHub
- URL: https://github.com/rwxd/vmrss
- Owner: rwxd
- Created: 2023-12-22T16:04:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-03T23:34:08.000Z (5 months ago)
- Last Synced: 2026-02-04T08:48:23.951Z (5 months ago)
- Topics: cli, memory, vmrss
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vmrss
A simple tool to show the memory usage of a process and its children.
## Install
Get the latest binary from the [releases page](https://github.com/rwxd/vmrss/releases).
Or install with go:
```bash
go get github.com/rwxd/vmrss
```
### NixOS / Nix
Refer to https://github.com/rwxd/my-nixpkgs for the nix package.
## Usage
### Continuously monitor a process
```bash
vmrss -m 3840
.kitty-wrapped(3840): 151.23 MB
zsh(3851): 12.50 MB
tmux: client(3992): 5.20 MB
zsh(3938): 9.28 MB
Total: 178.20 MB
```
### Set custom interval in milliseconds
```bash
vmrss -m -i 2000 3840
```
### Quit after a certain amount of time in seconds
```bash
vmrss -m -t 10 26847
```
### Do not show children
```bash
vmrss -m -c=false 26847
```
### Show swapped memory
```bash
vmrss -m -s 3840
.kitty-wrapped(3840): 151.36 MB | swap: 0.00 MB
zsh(3851): 12.50 MB | swap: 0.00 MB
tmux: client(3992): 5.20 MB | swap: 0.00 MB
zsh(3938): 9.28 MB | swap: 0.00 MB
Total: 178.34 MB | swap: 0.00 MB
```