Old boy Education Daily-March 21, 2017: Find the top 3 processes that occupy memory

Source: Internet
Author: User

Find the top 3 processes that occupy memory (Command big Storm, see whose commands are most streamlined)

Reference Answer:

    • Method One

Top sorted by memory column, using > can be moved to sort by memory x highlight Z plus color

    • Method Two

Top-a Sorting in memory

    • Method Three

Htop can be sorted by memory column with mouse click

Note: Yum installation required (Epel source)

# View processes sorted by memory from large to small

    • Method Four

[[email protected] ~]# Ps-eo "%c:%p:%z:%a"--sort-vsz%cpu:pid:vsz:command 0.0:1282:255424:/SB  In/rsyslogd-i/var/run/syslogd.pid-c 5 0.0:1314:116856:crond 0.0:3185:108340:-bash 0.0:3228:108340 :-bash 0.0:3557:108340:-bash
    • Method Five

Ps-aux | Sort-k4nr | Head-3


This article is from the "Lee blog" blog, make sure to keep this source http://lidao.blog.51cto.com/3388056/1914585

Old boy Education Daily-March 21, 2017: Find the top 3 processes that occupy memory

Related Article

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.