get_process_info
Retrieve running processes sorted by CPU, memory, or both with a custom result limit. Identifies top resource consumers for performance monitoring.
Instructions
Returns running processes sortable by CPU, memory, or both with a configurable limit (default 10, max 100). Read-only but heavy: walks /proc and reads smaps for every process, so keep limit low. Per-process read errors are ignored; fails only if the process list cannot be read. Prefer get_top_io_processes for disk I/O ranking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | max results (default: 10, max: 100) | |
| sort_by | No | sort by 'cpu', 'memory', or 'both' (default: cpu) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by_cpu | No | ||
| errors | No | ||
| by_memory | No | ||
| processes | No |