Code-server instances "stay open" after being closed from browser
See original GitHub issueOS/Web Information
- Web Browser: Chrome
- Local OS: Windows
- Remote OS: Docker Linux
- Remote Architecture: Docker Compose Contianer
code-server --version:
Steps to Reproduce
- Open htop
- Open multiple tabs and close them again when code-server loads
- The instance stays open, with HTOP showing that the CPU usuage and RAM increases with each closed instance until it crashes.
Expected
The RAM and CPU usage should decrease after the instance is closed
Actual
It doesn’t 😃
Logs
https://files.mcaq.me/8xad.png I also don’t understand why the code-server items are tied to my user “adam” instead of root. This doesn’t make much sense to me?
This is difficult to show with logs, or at least I don’t know how to do it well with my setup.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Integrated terminal does not open after closing · Issue #1615
I am running code-server using the official docker image and having an issue with the integrated terminal. Initially, using Ctrl+` will open ......
Read more >FAQ - code-server v4.8.0 docs
Though code-server takes the open-source core of VS Code and allows you to run it in the browser, it is not entirely equivalent...
Read more >Visual Studio Code Server
The Visual Studio Code Server is a service you can run on a remote development machine, like your desktop PC or a virtual...
Read more >How to create your own VS Code server
To install a VS Code server, we will use code-server by coder. ... A VS Code instance will start listening on localhost to...
Read more >VS Code in the browser for everyone
After two years GitHub managed to ship Codespaces (& received a cake ). ... We are excited to announce OpenVSCode Server - an...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Alright. So since upgrading to 3.12.0 I have not had this issue. There are two reasons why that could be the case:
Regardless, I do not have the time to test this completely, especially after I have just got 3.12.0 working.
Thanks for all the help
This is 50% by design but also related to #3947. The idea is that you can keep a session alive, but you should be able to close the instance when you close the folder.