Top

From MineOS Wiki
Jump to navigation Jump to search

Usage

top is a utility to list the most basic statistics of your Linux server, including system uptime, CPU usage, memory and swap usage, as well as a unit-list breakdown of all processes running on the server by all users. It is always the best first place to check when you need to diagnose slowness, or check if services are running.

Help using top

To diagnose this, Check this
Server is exceptionally sluggish load average, mem used/free
Cannot connect via SSH sshd service running
No network connectivity using DHCP dhcpcd service running
No connectivity to Minecraft java instance exists

Example 'top' output

top - 19:40:17 up 1:00, 1 user, load average: 0.00, 0.00, 0.00

Tasks: 42 total, 1 running, 41 sleeping, 0 stopped, 0 zombie

Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st

Mem: 776340k total, 34236k used, 742104k free, 8104k buffers

Swap: 1047548k total, 0k used, 1047548k free, 16316k cached

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
   1 root      20   0  1820  584  520 S  0.0  0.1   0:00.03 init
   2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd
   3 root      20   0     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
   4 root      20   0     0    0    0 S  0.0  0.0   0:00.00 events/0
   5 root      20   0     0    0    0 S  0.0  0.0   0:00.06 khelper
   8 root      20   0     0    0    0 S  0.0  0.0   0:00.00 async/mgr
  78 root      20   0     0    0    0 S  0.0  0.0   0:00.00 sync_supers
  80 root      20   0     0    0    0 S  0.0  0.0   0:00.00 bdi-default
  82 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kblockd/0
  89 root      20   0     0    0    0 S  0.0  0.0   0:00.00 ata_aux
  90 root      20   0     0    0    0 S  0.0  0.0   0:00.00 ata_sff/0
  95 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kseriod
 208 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kswapd0
 256 root      20   0     0    0    0 S  0.0  0.0   0:00.00 aio/0
 266 root      20   0     0    0    0 S  0.0  0.0   0:00.00 crypto/0
 324 root      20   0     0    0    0 S  0.0  0.0   0:00.00 scsi_tgtd/0
 330 root      20   0     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_0
 335 root      20   0     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_1
 338 root      20   0     0    0    0 S  0.0  0.0   0:00.00 scsi_eh_2
 377 root      20   0     0    0    0 S  0.0  0.0   0:00.00 jbd2/sda1-8
 378 root      20   0     0    0    0 S  0.0  0.0   0:00.00 ext4-dio-unwrit
 387 root      16  -4  2180  828  452 S  0.0  0.1   0:00.01 udevd
 517 root      18  -2  2176  804  424 S  0.0  0.1   0:00.00 udevd
 519 root      18  -2  2176  796  420 S  0.0  0.1   0:00.00 udevd
 524 root      20   0     0    0    0 S  0.0  0.0   0:00.00 khubd
 526 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kpsmoused
 576 root      20   0     0    0    0 S  0.0  0.0   0:00.00 usbhid_resumer
 599 root      20   0  1872  584  488 S  0.0  0.1   0:00.02 syslogd
 601 root      20   0  2284 1016  432 S  0.0  0.1   0:00.00 klogd
 626 root      20   0  2008  344  240 S  0.0  0.0   0:00.00 dhcpcd
 631 root      20   0  1860  604  512 S  0.0  0.1   0:00.00 crond
 638 root      20   0  4152 1076  816 S  0.0  0.1   0:00.00 sshd
 642 root      20   0  1820  516  460 S  0.0  0.1   0:00.00 agetty
 643 root      20   0  1820  524  460 S  0.0  0.1   0:00.00 agetty
 644 root      20   0  1820  516  460 S  0.0  0.1   0:00.00 agetty
 645 root      20   0  1820  524  460 S  0.0  0.1   0:00.00 agetty
 646 root      20   0  1820  520  460 S  0.0  0.1   0:00.00 agetty
 647 root      20   0  1820  516  460 S  0.0  0.1   0:00.00 agetty
 650 root      20   0  6880 2088 1732 S  0.0  0.3   0:00.04 sshd
 654 root      20   0  3012 1628 1316 S  0.0  0.2   0:00.00 bash
 690 root      20   0     0    0    0 S  0.0  0.0   0:00.00 flush-8:0
 692 root      20   0  2288  984  804 R  0.0  0.1   0:00.00 top