Inspect thread-level CPU consumers.

Section: Export and correlation recipes

List threads for one PID with ps

bash
bash
ps -T -p 12345 -o pid,tid,pcpu,pmem,comm
Explanation

Useful when a multithreaded process looks hot in htop and you need per-thread detail.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Export and correlation recipes
Correlate a PID with journal logs
Inspect logs for a systemd service around an incident.
OpenIn sheetbashsame section
Inspect open files for a PID
Use shell output when you need to save or grep the results.
OpenIn sheetbashsame section
Inspect sockets owned by a process
Check network connections for the suspected process.
OpenIn sheetbashsame section
Use smem for proportional memory analysis
Pair htop with PSS-focused memory reporting when available.
OpenIn sheetbashsame section
List top CPU consumers with ps
Get a quick textual top list.
OpenIn sheetbash1 tag match
List top memory consumers with ps
Sort textual output by memory use.
OpenIn sheetbash1 tag match