vscode使用remote ssh到server上 - Node进程吃满CPU

部署运行你感兴趣的模型镜像

起因:Node进程吃满CPU

在这里插入图片描述

在这里插入图片描述

分析

我发现每次使用vscode的remote插件登陆到server后,就会出现node进程,不太清楚干什么用的,但是绝对和它有关。

查找原因

首先找到了这篇文章,解决了rg进程的问题:
https://blog.youkuaiyun.com/sigmarising/article/details/107615035
其评论区有个朋友给出了解决方案:修补libc6共享库
在这里插入图片描述
这里他发的wget链接挂了,不过,这也给我们提供了libc6关键字
继续搜索:“vscode node libc6 cpu占满”
可以看到有github的讨论:
https://github.com/microsoft/vscode-remote-release/issues/2921
在这里插入图片描述
进入,看到了解决方法:
在这里插入图片描述
简而言之就是下载一个libc6,然后dpkg安装!但是这里的链接还是不能用,无奈,返回浏览器首页,搜索libc6 amd64 ubuntu:
https://pkgs.org/search/?q=libc6
进到这个链接,找到ubuntu9的deb,下载,dpkg安装。
中间有个小插曲,出现了一个warning:提示/lib/libdwarf.so.0 is not a symbolic link

解决:备份/lib/libdwarf.so.0,然后删除/lib/libdwarf.so.0,再执行dpkg安装即可。

安装后top一下,node还是存在,且占满CPU100%。受不了了,打算开始用source insight

转而一想,最初那个优快云的链接,评论区有个大佬说过可以把vscode-server删了试试:
在这里插入图片描述
我直接用windows终端 ssh到 服务器,把~/.vscode-server/下的内容删光。再开启vsc看看,还是吃满。有可能是有node进程依然存活,删除时被占用,无法杀死。再试试他说的kill,果然成功!
node不再吃满CPU!
在这里插入图片描述

您可能感兴趣的与本文相关的镜像

Seed-Coder-8B-Base

Seed-Coder-8B-Base

文本生成
Seed-Coder

Seed-Coder是一个功能强大、透明、参数高效的 8B 级开源代码模型系列,包括基础变体、指导变体和推理变体,由字节团队开源

[info] Resolving ssh remote authority 'AAA' (Unparsed 'ssh-remote+7b22686f73744e616d65223a22414141227d') (attempt #1) [info] SSH askpass server listening on port 56876 [debug] hostname: AAA, remote platform map: {"AAA":"linux"} [info] Using configured platform linux for remote host AAA [debug] hostname: AAA, remote server install map: {} [info] Using askpass script: c:\Users\Administrator\.cursor\extensions\anysphere.remote-ssh-1.0.30\dist\scripts\launchSSHAskpass.bat with javascript file c:\Users\Administrator\.cursor\extensions\anysphere.remote-ssh-1.0.30\dist\scripts\sshAskClient.js. Askpass handle: 56876 [info] Launching SSH server via shell with command: type "C:\Users\ADMINI~1\AppData\Local\Temp\cursor_remote_install_1b077955-8be4-4cd9-a58f-fafaecf4ec88.sh" | ssh -T -D 56878 AAA bash --login -c bash [info] Establishing SSH connection: type "C:\Users\ADMINI~1\AppData\Local\Temp\cursor_remote_install_1b077955-8be4-4cd9-a58f-fafaecf4ec88.sh" | ssh -T -D 56878 AAA bash --login -c bash [info] Started installation script. Waiting for it to finish... [info] Waiting for server to install. Timeout: 120000ms [error] Error installing server: [Error: Failed to install server within the timeout at Timeout._onTimeout (c:\Users\Administrator\.cursor\extensions\anysphere.remote-ssh-1.0.30\dist\main.js:2:946411) at listOnTimeout (node:internal/timers:581:17) at process.processTimers (node:internal/timers:519:7)] [info] Deleting local script C:\Users\ADMINI~1\AppData\Local\Temp\cursor_remote_install_1b077955-8be4-4cd9-a58f-fafaecf4ec88.sh [error] Error deleting random file C:\Users\ADMINI~1\AppData\Local\Temp\cursor_remote_install_1b077955-8be4-4cd9-a58f-fafaecf4ec88.sh: Error: EBUSY: resource busy or locked, unlink 'C:\Users\ADMINI~1\AppData\Local\Temp\cursor_remote_install_1b077955-8be4-4cd9-a58f-fafaecf4ec88.sh' [error] Error resolving SSH authority [Error: Failed to install server within the timeout at Timeout._onTimeout (c:\Users\Administrator\.cursor\extensions\anysphere.remote-ssh-1.0.30\dist\main.js:2:946411) at listOnTimeout (node:internal/timers:581:17) at process.processTimers (node:internal/timers:519:7)] 我要解决这个问题,我的配置已经发给你了
09-13
Connection closed by UNKNOWN port 65535 local-server-1> ssh child died, shutting down [17:05:22.832] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped. [17:05:22.833] Failed to parse remote port from server output [17:05:22.834] Resolver error: Error at y.Create (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:744751) at t.handleInstallOutput (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:742832) at e (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:798600) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:823806 at async t.withShowDetailsEvent (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:827501) at async /Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:795312 at async P (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:793367) at async t.resolveWithLocalServer (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:794864) at async A (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:820659) at async t.resolve (/Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:824898) at async /Users/bytedance/.vscode/extensions/ms-vscode-remote.remote-ssh-0.120.0/out/extension.js:2:1113660 [17:05:22.839] ------
最新发布
11-12
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值