Linux查看内存情况

查看指定进程的内存:

[root@wwhhff11 ~]# pidof mysqld
1198
[root@wwhhff11 ~]# top -p 1198
top - 11:06:12 up 41 days, 13:58,  1 user,  load average: 0.00, 0.01, 0.05
Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.0 us,  0.0 sy,  0.0 ni,100.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   1016656 total,   948808 used,    67848 free,    40728 buffers
KiB Swap:        0 total,        0 used,        0 free.   108308 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND                                                                                                                    
 1198 mysql     20   0  974208 239000   4304 S  0.0 23.5  24:48.68 mysqld
[root@wwhhff11 ~]# free
             total       used       free     shared    buffers     cached
Mem:       1016656     949096      67560      51240      40740     108308
-/+ buffers/cache:     800048     216608
Swap:            

你可能感兴趣的:(Linux查看内存情况)