First, use the top command
#View system memory and CPU usage top #View the memory and CPU usage of a process top -p process ID
For example: top -p 417
Second, the introduction of relevant parameters
#PID Process ID #USER start process user #PR Process priority #VIRT The size of virtual memory occupied by the process, VIRT = SWAP + RES #SWAP The size of the virtual memory used by the SWAP process that is swapped out to disk #RES The size of the physical memory occupied by the process (relative to SWAP, the size that has not been swapped out) #SHR The size of shared memory used by the process #%CPU Process CPU usage #%MEM Process physical memory usage