search

Home  >  Q&A  >  body text

linux - centos服务器如何用命令查看哪个程序内存占用情况

centos服务器如何用命令查看哪个程序内存占用情况

free -m只能查看内存总量情况

我想查看每个程序单独使用的情况用什么命令

迷茫迷茫2770 days ago720

reply all(8)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 15:05:32

    top
    ps
    You can try it

    top

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:05:32

    Try the magic tool atop

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:05:32

    Try this: top

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 15:05:32

    yum install htop -y
    htop

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:05:32

    ps aux | grep your program name

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:05:32

    htop is more detailed and can be installed through yum, yum install htop

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:05:32

    Simple command, top 10 memory-consuming programs, all programs are listed without adding head

    ps aux|head -1; ps aux | sort -k4nr | head -10

    reply
    0
  • 迷茫

    迷茫2017-04-17 15:05:32

    top command, M can see the percentage occupied by the process and estimate the memory occupied by the process

    reply
    0
  • Cancelreply