Dynamically view the memory usage of a process

1,top command top -d 1 -p pid [,pid ...] // Set to delay 1s, The default is delay 3s
If you want to sort by memory usage , sure shift + m(Sort by memory usage)

 

Static view of a process's memory usage

 1,pmap command pmap pid 2,ps command ps aux|grep process_name
3, see /proc/process_id/ Under folder status file Name: php State: R (running) SleepAVG: 0%
Tgid: 21574 Pid: 21574 PPid: 10005 TracerPid: 0 Uid: 1000 1000 1000 1000 Gid:
100 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 Size of task virtual address space VmSize
The size of the physical memory the application is using VmRSS

Technology
©2019-2020 Toolsou All rights reserved,
TP6 Application examples of verifier and correct verification data ESP8266/ESP32 System : Optimize system startup time 2021 year 2 Chinese programming language ranking 2021 year 1 Monthly programmer salary statistics , average 14915 element CSS architecture design It's not depravity that's terrible , It's about knowing you're falling Gude Haowen serial - You deserve to be an engineer ( Preface ) Software testing BUG describe C Course design of language programming of 《 Student achievement management system 》vue In the project axios Global encapsulation of