Commands and tools to view Linux memory status

Source: Internet
Author: User

1, Cat/proc/meminfo

Cat/proc/<pid>/statm and cat/proc/<pid>/status Get the memory information for a particular process;

2, Atop  command is for use in the terminal environment based on ncurses interactive system and process monitoring tools. It shows a summary of dynamically updated system resources ( cpu , memory, network, input \ output, kernel), The high-load part of the system is marked with a warning message with striking color. ( sudo atop ) //RED&NBSP;HAT&NBSP;

3. The Free command is a quick and easy way to get an overview of memory usage, which is obtained from /proc/meminfo ; it provides a snapshot that shows the total / Idle physical memory and system swap area, and used / idle kernel buffers (free-h)//free-m

4, Gnome-system-monitor A graphical interface application, showing the CPU, memory, swap area and network, including the system resource utilization of more recent historical information. You can also provide a View of the process with CPU and memory usage;

5. Htop can be viewed horizontally or vertically by scrolling the process list;//red hat version does not have the command;

6, Ksysguard Show Class A Real-time History of system resource usage and cpu/memory consumption with each process. There is no such command under //red hat version;

7. Memstat-p <pid> Identify executable parts, processes, and shared libraries that are consuming virtual memory //red hat version without the command;

8, Nmon show the results are real-time,//red hat version without the command;

9, PS aux--sort-rss

Shown MEM ( percent of physical memory usage ),VSZ(total virtual memory usage) and RSS ( Total Physical memory usage )

10, sudo smem--pie name-c "PSS" This information is derived from the /proc Directory Memory usage analysis results can be output as a histogram or pie chart in the graphical chart. There is no such command under //red hat version;

11. Top

12. Vmstat-s Reality covers the trend and average statistics of various system activities for CPU, memory, interrupts, and disk I/O . For memory information, the command not only shows the physical memory usage (total, used, buffered, cached memory), but also shows the virtual memory statistics (swap in memory pages, swap out of virtual memory pages)

Commands and tools to view Linux memory status

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.