How to use ps

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

The command ps reports a snapshot of a system’s current processes.

The ps command is very useful at getting a snapshot overview of what processes are currently running on a system.  This information can be extremely useful for attempting to discover what is causing a server to behave sluggishly.

In order to maximize the information that is provided by this command there are two different ways that it is suggested it be used:

ps aux or ps auxf

The difference being that the f flag will group together like processes into a process tree.

Below is an example of the command ps aux being run on a server:

Click image to enlarge

Below is an example of the ps auxf command in action:

Click image to enlarge

The process tree seen above shows you what processes belong together, with the “parent” process being the one at the top of the list, and the “child” processes that were created by the parent process appearing below.

So what do we see in the process list?

USER – Tells us what user on the server owns/is running the process.

PID – The process ID on the server. Can be used to stop processes if needed via the commands kill or killall.

%CPU – Percentage of the CPU the process is using.

%MEM – Percentage of total RAM (memory) the process is using.

VSZ – Virtual memory size of the process. This may be stored in either the main memory (RAM), on the hard drive in swap space, or a combination of both.

RSS – Real memory (RAM) size of the process.

TTY – Indicates which terminal the process is running on. ? means they are running locally on the server, not by any remote terminal or local X terminal.

STAT – Indicates the process status. For a list of what the process statuses mean please see our knowledge base article “Linux Process Statuses”.

START – The time the process started running on the server.

TIME – The amount of CPU time in minutes and seconds that the process has been running.

COMMAND – The command that is running.

===

sxi.io Web’s Heroic Support is always available to assist customers with this or any other issue. If you need our assistance please contact us:
Toll Free 1.800.580.4985
International 517.322.0434
support@sxi.io
https://manage.sxi.io/

Related posts

Zuckerberg to Study Crypto in Quest to Fix Facebook

SXI ADMIN

Zooko Wilcox Envisions ‘Ambitious’ Changes for Zcash Cryptocurrency

SXI ADMIN

ZombieChain Comes Alive: Can Ethereum Sidechains Save the Dapps?

SXI ADMIN

ZoKrates Seeks to Bring Best of Zcash to Ethereum with Devcon Debut

SXI ADMIN

Zk-Starks? New Take on Zcash Tech Could Power Truly Private Blockchains

SXI ADMIN

Zk-Snarks Everywhere: Ethereum Privacy Tech Hits Tipping Point

SXI ADMIN

ZipZap to Offer Cash-for-Bitcoin Service at 28,000 UK Locations

SXI ADMIN

ZipZap Resumes Cash-to-Bitcoin Services for UK Shoppers

SXI ADMIN

ZipZap Raises $1.1 Million to Grow Global Bitcoin Payments Network

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More