Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code remote-ssh creating too many zombie processes

I'm using VS Code's remote-ssh to connect to a Linux server.

The output of top is shown below, with the zombie process's command as “node”:

output of top

How can I solve this problem?

like image 263
QXian Avatar asked Jul 04 '26 19:07

QXian


1 Answers

I see the same problem. In my experience it stems from workspace searches (ctrl + shift + f) and file searches (ctrl + p). Ever since I started ending searches by clicking the 'clear search results button':

clear search results button

, results have been better. As a backup, using 'kill -12 'pid'' (pid as seen in top process table above) to close node processes regularly is the only way to not choke the system.

If I come across a better way to stop VSCode from spawning these processes, I will update this answer.

like image 84
Nabeel Avatar answered Jul 06 '26 14:07

Nabeel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!