linux查看进程占用内存情况

top -pid 6102

查看进程id 6102占用内存大小

Processes: 497 total, 2 running, 495 sleeping, 3548 threads                                           10:45:11
Load Avg: 10.42, 10.22, 10.41  CPU usage: 56.56% user, 18.55% sys, 24.88% idle
SharedLibs: 188M resident, 50M data, 39M linkedit.
MemRegions: 122278 total, 1693M resident, 83M private, 1712M shared.
PhysMem: 8105M used (2120M wired), 87M unused.
VM: 3356G vsize, 1110M framework vsize, 4426623(639) swapins, 4943397(0) swapouts.
Networks: packets: 956417/776M in, 745884/155M out. Disks: 1900232/43G read, 913637/32G written.

PID   COMMAND      %CPU TIME     #TH  #WQ  #POR MEM   PURG   CMPRS PGRP PPID STATE    BOOSTS       %CPU_ME
6102  eclipse      0.1  06:12.07 50   1    383  164M  6804K  806M  6102 1    sleeping *1[18]       0.00000

你可能感兴趣的:(linux)