monitoring commands

Top Command

 
Top Command: As a Linux system administrator, top command is a frequently used command and our daily tasks we used multiple times this commands to view resource utilization by processes on server. This command helps us to find which process is utilizing what resources of system.
Result Row #1:
Row 1 results shows about server up time from last reboot, currently logged in users and cpu load on server. The same output you can find using linux uptime command.
read-top-command-result-1
Result Row #2:
Row 2 shows the number of process running on server and there state.
Result Row #3:
Row three shows the cpu utilization status on server, you can find here how much cpu is free and how much is utilizing by system.
Result Row #4:
Row 4 shows the memory utilization on server, you can find here how much memory is used, the same results you can find using free command
Result Row #5:
Row 4 shows the swap memory utilization on server, you can find here how much swap is being used, the same results you can find using free command.
Result Row #6 ( Running Processes ):
In this steps you will see all running process on servers and there additional details about them like below.
read-top-command-result-6

==============================
If you want to sort output on basis of any fields, you can use following key combinations.

Press “SHIFT + F” and Select your choice below and press ENTER.

A     ( PID = Process Id )
b     (  PPID   = Parent Process Pid )
d     (  UID= User Id )
e     (  USER   = User Name )
f     (  GROUP  = Group Name )
g     (  TTY= Controlling Tty )
h     (  PR = Priority )
i     (  NI = Nice value )
j     (  P  = Last used cpu (SMP) )
k     (  %CPU  = CPU usage )
l     (  TIME  = CPU Time )
n     (  %MEM  = Memory usage (RES) )
o     (  VIRT  = Virtual Image (kb) )
p     (  SWAP  = Swapped size (kb) )
q     (  RES= Resident size (kb) )
r     (  CODE  = Code size  (kb) )
s     (  DATA  = Data+Stack size (kb) )
t     (  SHR= Shared Mem size (kb) )
w     (  S  = Process Status )
x     (  COMMAND= Command name/line )

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s