type
status
date
slug
summary
tags
category
icon
password
Property
Mar 11, 2023 06:31 AM

背景

  • 在使用 VSCode 的 ssh 插件连接阿里云的云服务器,总是过了一会儿自动断连,之后服务器就宕机了,必须重启才能连上
  • top 查看,原来是一个叫 rg 的进程占用了近 90% 的 CPU
notion image

解决方案

  • 原因:此问题在所连接到的工作区含有大量 symlinks 时会出现,而我刚好在工作区打开了根目录,存在很多符号链接
  • 方法:打开 VSCode 的设置,搜索 search.followSymlinks,将 远程工作区 的设置设为 False 即可
notion image
notion image

解决后效果

  • rg 进程不再高度占用 CPU
notion image
 
Ubuntu 配置 oh-my-zshFFmpeg 命令行大全