1. free

free The command is used to view the system memory usage as a whole
$ free -h total used free shared buff/cache available Mem: 7.6G 6.6G 528M 8.7M
505M 783M Swap: 0B 0B 0B
2. top

top The order is Linux Common performance analysis tools , It can display the resource usage of each process in the system in real time , Can be used directly top After command , see %MEM Content of . You can choose to view by process or by user
  $ top -u calendar top - 15:58:31 up 29 min, 3 users, load average: 0.16, 0.13
,0.38 Tasks: 114 total, 1 running, 113 sleeping, 0 stopped, 0 zombie %Cpu(s):
0.2 us, 0.2 sy, 0.0 ni, 99.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem :
8010220 total, 706500 free, 6795212 used, 508508 buff/cache KiB Swap: 0 total, 0
free,0 used. 958624 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND10805 calendar 20 0 4135848 1.312g 17472 S 0.3 17.2 2:03.83 java 11084
calendar20 0 5906496 2.475g 17332 S 0.3 32.4 5:17.68 java 11121 calendar 20 0
6005152 2.579g 17352 S 0.3 33.8 8:16.93 java 9291 calendar 20 0 146244 2292 988
S0.0 0.0 0:00.11 sshd
Content explanation :
  PID: Process ID   USER: Process owner   PR: Priority of the process , The smaller, the better   NInice: value   VIRT: Virtual memory occupied by process
  RES: Physical memory occupied by the process   SHR: Shared memory used by the process   S: Status of the process .S Indicates sleep ,R Indicates running ,Z Indicates a dead state ,N Indicates that the process priority value is negative   %
CPU: Process occupation CPU Usage rate of   %MEM: Percentage of physical and total memory used by the process
  TIME+: The total CPU time , I.e. occupation CPU Cumulative value of service time .   COMMAND: Process start command name    Common commands :
  P: Press %CPU Usage ranking   T: Press MITE+ Ranking   M: Press %MEM Ranking
3. pmap

   You can view the memory occupied by process related information according to the process ,( The process number can be ps see ) As follows :
  $ pmap -d 10805
4. ps

   As shown in the following example :
  $ ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' among rsz Is the actual memory   $ ps -e
-o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' | grep java | sort -nrk5
   among rsz Is the actual memory , The above example implements sorting by memory , From big to small

©2019-2020 Toolsou All rights reserved,
Faster RCNN Explanation of series algorithm principle ( note ) Huawei certification HCIA-AI artificial intelligence Free download of documents : To introduce you to a few useful free download URL CSS architecture design MySQL An interview is a must !TP6 Application examples of verifier and correct verification data China Lunar Rover “ Moon rabbit No.2 ” A strange rock was found on the moon Programmer Tanabata Valentine's Day confession code A single key controls multiple water lamp states Jsp+Ajax+Servlet+Mysql Add, delete, modify and query ( one )