![Forrest logo](/images/logo.png)
dstat:tldr:a68cb
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.