Process Inspector
Find what process is using a specific port, identify resource-heavy processes, or investigate what is running on the system.
What it does
Find what process is using a specific port, identify resource-heavy processes, or investigate what is running on the system.
Procedure
When this skill is activated, Chalie follows these steps:
- Use
memoryto recall any prior process investigations or known problematic services. - Ask the user what they want to inspect: a specific port number, a process name, or a general overview of resource-heavy processes.
- For port inspection: use
bashwith action read to runlsof -i :<port> -P -norss -tlnp | grep :<port>to identify which process is binding the port — report PID, process name, and user. - For process search: use
bashwith action read to runps aux | grep -i <name>to find matching processes — report PID, CPU%, MEM%, and command line. - For resource overview: use
bashwith action read to runps aux --sort=-%cpu | head -15andps aux --sort=-%mem | head -15to show the top consumers of CPU and memory separately. - Present the findings clearly: which process, how much resource it consumes, and whether it looks abnormal based on the process name and usage level.
Version
v1 (curated)