WordPress

[WordPress on VPS] How To Check CPU Usage

Monitoring CPU usage is one of the important tasks in computing. Even though checking out the CPU usage on a Linux system isn’t as straightforward or user-friendly as on Windows, there are still various utilities available for you to use.

Top

Among all the utilities, Top is probably one of the oldest and yet a very effective tool that provides a dynamic real-time view of a running Linux system. Built right in the system, Top displays not only system summary information but also a list of actively running tasks managed by the Linux kernel.

$> top

The top section displays the information related to overall system status, uptime, load average, the number of tasks, process count, CPU status, memory and swap space stats.

The bottom section contains a frequently-updated list of processes, ordered by the CPU usage by default.

ps

Alternatively, if you would like to find out which processes is occupying the CPU usage, ps is your friend.

To see the top 10 CPU occupiers on your system, use:

ps -eo pcpu,pid,user,args | sort -k 1 -r | head -10

The sysstat package

The sysstat is a special package that includes a set of system performance tools for Linux. It’s installed by default on Red Hat but needs to be installed on a Debian or Ubuntu system.

To install,

$> sudo apt-get install sysstat

There are a few utilities you may want to check once you have the package installed, including mpstat, iostat, sar, etc.

edge

Share
Published by
edge

Recent Posts

Disable Copilot on Windows 11 via Group Policy GPO

If using Copilot right from the Taskbar isn't your thing, you should disable it. Even…

3 weeks ago

Setting Default Fonts in Word, Excel, Outlook, and PowerPoint via Group Policy

In an environment where standardizing things does matter, setting default fonts in Microsoft Office apps…

1 month ago

Wake-On-LAN (WOL) with Windows and PowerShell

Wake-On-LAN is a networking standard that lets you wake up a computer from either a…

2 months ago

How To Remove Restrictions Set in A Password-Protected PDF File

First of all, this is not to bypass a PDF file that requires a password…

2 months ago

How To Move My Outlook Navigation Bar Back From Left Back To the Bottom

Microsoft has been lurking about the idea of placing the Outlook navigation bar to the…

1 year ago

Headset with Microphone Echoing My Own Voice on Windows, What To Do?

One colleague came up to me the other day asking me to take look at…

1 year ago