Forrest logo
back to the dstat tool

dstat:tldr:a68cb

dstat: Display the process using the most memory and most CPU.
$ dstat --top-mem --top-cpu
try on your machine

The command "dstat --top-mem --top-cpu" is used to collect and display real-time system resource statistics on a Linux system.

  • "dstat" is a command-line tool that provides various system resource statistics in a concise and readable format. It collects and displays information on CPU usage, disk activity, network traffic, memory usage, and more.

  • "--top-mem" is an option for dstat that displays the processes consuming the most memory in real-time. It lists the top memory-consuming processes along with their memory usage, as a percentage of the total system memory.

  • "--top-cpu" is another option that shows the processes utilizing the most CPU resources at any given time. It presents the top CPU-consuming processes along with their CPU usage, as a percentage of the total available CPU resources.

By combining these two options in the "dstat" command, you will see real-time information about the processes utilizing the most memory and CPU resources on your Linux system. This can help identify resource-intensive applications or processes that may be causing system slowdowns or performance issues.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dstat tool