Use the top command in Centos to check resources occupied by processes

Source: Internet
Author: User
Use the top command in linux to View resources occupied by processes like the job manager in windows.

In linux, how does one analyze the resource usage of a process? The top command is used here.

#top  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND    1 root      15   0  2160  636  548 S  0.0  0.1   0:01.36 init    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0    4 root      10  -5     0    0    0 S  0.0  0.0   0:12.11 events/0    5 root      10  -5     0    0    0 S  0.0  0.0   0:00.08 khelper    6 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread    9 root      10  -5     0    0    0 S  0.0  0.0   0:00.01 kblockd/0   10 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid  169 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0  172 root      12  -5     0    0    0 S  0.0  0.0   0:00.00 khubd  174 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kseriod  240 root      20   0     0    0    0 S  0.0  0.0   0:00.00 khungtaskd  241 root      15   0     0    0    0 S  0.0  0.0   0:00.02 pdflush  242 root      20   0     0    0    0 S  0.0  0.0   0:00.11 pdflush  243 root      10  -5     0    0    0 S  0.0  0.0   0:00.16 kswapd0  244 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 aio/0  462 root      11  -5     0    0    0 S  0.0  0.0   0:00.00 kpsmoused

% CPU indicates the percentage of cpu used, and % MEM indicates the percentage of memory used.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.