MemWatch
Memory monitor: view usage, find top consumers, watch trends, inspect per-process memory, check swap, and alert on thresholds.
Commands
| Command |
Description |
memwatch status |
Current memory usage with visual bar and breakdown |
memwatch top [n] |
Top N memory-consuming processes (default: 10) |
memwatch watch |
Snapshot memory every 2s for 10 iterations |
memwatch process <pid> |
Memory details for a specific PID (VmRSS, VmSize, PSS, etc.) |
memwatch swap |
Swap usage details with top swap consumers |
memwatch alert <threshold> |
Check if memory usage exceeds threshold % |
memwatch detailed |
Full /proc/meminfo dump |
memwatch compare |
Compare memory now vs 30 seconds later (delta) |
memwatch version |
Show version |
Examples
memwatch status # → usage %, visual bar, total/avail/cached
memwatch top 5 # → top 5 RAM consumers (PID, %MEM, RSS, CMD)
memwatch watch # → 10 snapshots, 2s apart
memwatch process 1234 # → VmSize, VmRSS, VmSwap, PSS, threads
memwatch swap # → swap devices, usage, top swap consumers
memwatch alert 80 # → 🚨 if usage > 80%, ✅ if under
memwatch detailed # → full /proc/meminfo
memwatch compare # → two snapshots 30s apart with delta
Requirements
free, ps (standard)
/proc/meminfo, /proc/[pid]/status (Linux)
1---
2name: memwatch
3description: "Monitor RAM usage in real time and alert on high memory consumption thresholds. Use when tracking memory, identifying RAM hogs, setting alert thresholds."
4version: "3.0.0"
5author: "BytesAgain"
6homepage: https://bytesagain.com
7source: https://github.com/bytesagain/ai-skills
8tags: ["memory","ram","monitor","system","process","swap","admin","performance"]
9categories: ["System Tools", "Developer Tools"]
10metadata:
11 source: https://skillmd.com/skills/bytesagain/memwatch
12---
13
14# MemWatch
15
16Memory monitor: view usage, find top consumers, watch trends, inspect per-process memory, check swap, and alert on thresholds.
17
18## Commands
19
20| Command | Description |
21|---------|-------------|
22| `memwatch status` | Current memory usage with visual bar and breakdown |
23| `memwatch top [n]` | Top N memory-consuming processes (default: 10) |
24| `memwatch watch` | Snapshot memory every 2s for 10 iterations |
25| `memwatch process <pid>` | Memory details for a specific PID (VmRSS, VmSize, PSS, etc.) |
26| `memwatch swap` | Swap usage details with top swap consumers |
27| `memwatch alert <threshold>` | Check if memory usage exceeds threshold % |
28| `memwatch detailed` | Full `/proc/meminfo` dump |
29| `memwatch compare` | Compare memory now vs 30 seconds later (delta) |
30| `memwatch version` | Show version |
31
32## Examples
33
34```bash
35memwatch status # → usage %, visual bar, total/avail/cached
36memwatch top 5 # → top 5 RAM consumers (PID, %MEM, RSS, CMD)
37memwatch watch # → 10 snapshots, 2s apart
38memwatch process 1234 # → VmSize, VmRSS, VmSwap, PSS, threads
39memwatch swap # → swap devices, usage, top swap consumers
40memwatch alert 80 # → 🚨 if usage > 80%, ✅ if under
41memwatch detailed # → full /proc/meminfo
42memwatch compare # → two snapshots 30s apart with delta
43```
44
45## Requirements
46
47- `free`, `ps` (standard)
48- `/proc/meminfo`, `/proc/[pid]/status` (Linux)