In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to check the use of process memory under linux". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to check the use of process memory under linux".
1. Top command
Top-d 1-p pid [, pid...] / / set to delay 1s, default is delay 3s
If you want to sort by memory usage, you can shift + m (sort by memory usage)
Statically view the memory usage of a process
The copy code is as follows:
1. Pmap command
Pmap pid
2. Ps command
Ps aux | grep process_name
3. View the status file under the / proc/process_id/ folder
Name: php
State: r (running)
Sleepavg: 0%
Tgid: 21574
Pid: 21574
Ppid: 10005
Tracerpid: 0
Uid: 1000 1000 1000
Gid: 100 100 100
Fdsize: 256
Groups: 16 100
Vmpeak: 161740 kb
Vmsize: 161740 kb
Vmlck: 0 kb
Vmhwm: 107144 kb
Vmrss: 107144 kb
Vmdata: 106192 kb
Vmstk: 84 kb
Vmexe: 5588 kb
Vmlib: 7884 kb
Vmpte: 268 kb
Threads: 1
Sigq: 0/69632
Sigpnd: 0000000000000000
Shdpnd: 0000000000000000
Sigblk: 0000000000000000
Sigign: 0000000000001000
Sigcgt: 00000001818040a7
Capinh: 0000000000000000
Capprm: 0000000000000000
Capeff: 0000000000000000
Cpus_allowed: 00000000,00000000,00000000,0000000f
Mems_allowed: 1
The size of the task virtual address space vmsize
The size of the physical memory being used by the application vmrss
At this point, I believe you have a deeper understanding of "how to view the use of process memory under linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.