Ubuntu performance Monitor

Created by Kupendiran S, Modified on Wed, 29 Mar, 2023 at 7:58 AM by Kupendiran S

How to monitor your system performance on (Ubuntu) Linux (howtoforge.com)


How to monitor your system performance on (Ubuntu) Linux

Monitoring your Linux system is essential in order to be able to improve its performance, locate the source of a problem and take more targeted corrective actions. As is always the case with Linux, there are quite a few tools and many different ways you can utilize to monitor different aspects of your system's performance. On this simple guide, we will take an overall look on how to install and run three monitoring tools on an Ubuntu Linux system.

GNOME System Monitor

The first tool that you can use to get an overview of the use of your system's resources is GNOME's system monitoring utility. With it you can determine the CPU load, RAM use, Swap file use, Hard Disk size and available space, and finally the Network activity (sent/received).

You may install this tool by choosing it on your package manager, or by entering the following command on a terminal:

sudo apt-get install gnome-system-monitor

The GNOME System monitor.

The first tab of the System Monitor is dedicated to process management. You can check what is running in your system, sort them by RAM usage or CPU load, and press the “End Process” button on the bottom right to kill the selected/highlighted entry from the list. You can also enable the “Dependencies” parameter on the “View” menu to see the child processes in a tree-like view.

Using GNOME System Monitor

The second tab depicts the usage history of the system's CPU (with core load represented individually), RAM and Swap as well as Network activity. This part of the tool is especially useful when wanting to locate a performance-hindering action. It would be even better if we could increase the history time frame shown, but unfortunately, the preferences don't allow for such a setting.

See RAM, Swap and Network activity in the monitor.

Top and Htop

A much more “handy” and straightforward approach on system monitoring is to simply open a terminal, type “top” and hit enter.

top

This will display all processes currently running in your system. If you want to sort the processes by size, press “P” and you're done.

The top command.

If top looks good, you should try htop which is even better! Install it by “sudo apt-get install htop” and run it on the terminal again.

sudo apt-get install htop
htop

Contrary to “simple” top, htop has some added features that make sorting by different factors easier, killing processes quicker and even some display options to make it look better. You can access its options using F1-10 as indicated on the bottom of the terminal.


The htop command.

Monitor your system with htop.

Lm-sensors

Finally, you should be aware of another useful terminal utility that is of a different kind than the above. Lm-sensors help you monitor your system's hardware temperatures and voltages. To get them, you can enter the following command on a terminal:

sudo apt-get install lm-sensors

Then you may simply type “sensors” on a terminal and some key info will be displayed.

sensors

Output of the lm-sensors command.

Server administrators that want to check these vital data remotely can also check the “psensors” package that does exactly that.

Bill Toulas

About Bill Toulas

Over five years of experience writing about Linux and open source software on blogs and news websites. As part of the community, this is my way to give back as well as to promote what I perceive as the most amazing development in the area of software and operation systems.

Share this page:

Suggested articles

3 Comment(s)

Add comment
Name * 
Email * 
p

Comments

By: connie

Might I suggest Conky, as it can keep an eye on things conitnuously, is graphically pleasing with a huge number of customisations  and light on resources, requiring little user interaction once set up.  It also makes users of other OSes jealous.  Would be a good idea to get a best conky setup article...

By: sachin

Hi, I want to check the memory performance for the last 1 month. this is my project. can you help me with how to find out memory performance history in Ubuntu? :)

By: Milen

It's very helpfull , thx !

P.S.  You can add "watch" befor "sensors" - it's nicer look at them :)

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article