lenmom
  • 查看内存使用情况

free -m
  • 查看cpu使用情况

top #查看进程运行情况
  • 查看磁盘以及分区情况

 df -h 
  • 查看网络情况

ifconfig
  • 查看端口使用情况

    #1.方法一
    lsof -i:端口号

    #2.方法二
    netstat -apn|grep 端口号
  • 清理内存

    #1.【推荐】释放网页缓存(To free pagecache),
    sync
    echo 1 > /proc/sys/vm/drop_caches

    #2.释放目录项和索引(To free dentries and inodes)
    sync
    echo 2 > /proc/sys/vm/drop_caches
    #3.释放网页缓存,目录项和索引(To free pagecache, dentries and inodes):
    sync
    echo 3 > /proc/sys/vm/drop_caches

选择适合自己的方式清理,再执行查看内存情况,就可以看到内存已经有很大空闲空间;

分类:

技术点:

相关文章:

  • 2021-12-02
  • 2021-12-12
  • 2021-10-03
  • 2021-10-29
  • 2021-10-02
  • 2022-01-01
  • 2021-11-29
  • 2021-10-02
猜你喜欢
  • 2021-10-18
  • 2021-11-02
  • 2021-11-29
  • 2022-01-01
  • 2021-11-07
  • 2021-12-23
  • 2021-10-16
相关资源
相似解决方案