Home / How To / Install and use collectl Performance Monitoring Tool on Ubuntu 20.04

Install and use collectl Performance Monitoring Tool on Ubuntu 20.04



If you are a system administrator and responsible for benchmarking and monitoring system performance, you need to know the best tool to perform this task. Collectl is a lightweight performance monitoring tool that can be used to collect performance data that describes the current system status. Compared to other monitoring tools, collectl collects information about many different types of system resources such as cpu, disk, memory, network, sockets, tcp, inodes, infiniband, luster, memory, nfs, processes, quadrics, tablets and buddyinfo. It can be run interactively or as a demon and has the ability to record and play back the recorded data. It also allows you to export data in various file formats.

In this tutorial we will show you how to install and use Collectl on Ubuntu 20.04.

conditions

  • A server running Ubuntu 20.04.
  • A root password is configured on the server.

Install Collectl

By default, the Collectl package is available in the standard Ubuntu repository. You can install it by running the following command:

apt-get install collectl -y

A brief explanation of each option in the Collectl command shown below:

  • C: CPU information.
  • D: Disk Information.
  • E: Environmental data such as, fan, current, temp, etc.
  • F: NFS data.
  • J Interruption.
  • L: File System Information.
  • N: Network information.
  • X: Interconnect.
  • AND: Cache system objects.
  • WITH: Process information.

How to use Collectl

You can run the Collectl command without any option to print information about cpu, disk and network statistics in human readable format.

collectl

The following screen appears:

Collectl Monitoring

To print statistics for all subsystems, run the command with the option – all:

collectl --all

The following screen appears:

collectl - alla

Run the following command to use Collectl command bait as the top tool:

collectl --top

The following screen appears:

collectl - top

To monitor all resources together, run the following command:

collectl -scmd

The following screen appears:

collectl -scmd

Run the command with -sm to display the memory usage on your system:

collectl -sm

The following screen appears:

collectl -sm

You can view information about cpu, disks and network data with the following command:

collectl -scdn

The following screen appears:

collectl -scdn

Run the following command for information about TCP and CPU:

collectl -stc

The following screen is displayed:

collectl -stc

Run the following command to get information about processes in your system:

collectl -c1 -sZ -i:1

The following screen is displayed:

collectl -c1 -sZ -i: 1

Conclusion

In the wizard above, you learned how to use the Collectl command-line tool to monitor system performance. I hope this helps you troubleshoot any performance related issues.


Source link