Linux top Problems

Source: Internet
Author: User
For more information about Linux top-Linux general technology-Linux technology and application, see the following. The top command is used to solve the problem of cpu utilization, but top always has some problems.

1. when top is executed, for example, the value displayed in top-n1-B is always fixed, the second time, we can get a relatively accurate value (in fact, the top occupies a certain utilization rate, so there is a certain error when using the top, you can use the C language and other methods ).

Solution: Write top-n2-B | sed/^ top/,/^ top/d to obtain the value displayed for the second time.

2. If there are multiple CPUs, sometimes the top command displays the total cpu usage. During the execution, press the number 1 key to view the details.

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.