Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reload/restart/kill VSCode server/service/process in Linux/Ubuntu?

I use VSCode in the Remote SSH extension. VSCode oftentimes hangs as memory usage ups, so for the each time I need to restart the VSCode through FILE -> Exit to close the instance entirely (including the non-SSH sessions which I don't want to close altogether.)

When the computer hanged on a Mongodb for example, I can simply do sudo systemctl restart mongod to force-restart the deamon/process to release the memory usage, cpu usage locks. I need something like this for VSCode. Maybe non a deamon but for a parent process? But I haven't figured out which. So please tell me how. Thank you.

enter image description here

Edit

I could kill the process on the computer. In the above example, it would be kill -9 3221. (to kill the parent process)

Good, but what is the process name but not rather a PID? (because easier to kill even when the computer is hanging where you cannot launch htop)

I think it installed through snapd but I'm not familiar with the package manager.

like image 402
丶 Limeー来夢 丶 Avatar asked Dec 21 '25 06:12

丶 Limeー来夢 丶


1 Answers

you can kill the process using name like this pkill -f "code"

like image 149
slowdancer Avatar answered Dec 23 '25 20:12

slowdancer



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!