-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Code-server instances "stay open" after being closed from browser #4351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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. |
Does the reproduction require opening a terminal or does this happen when opening code-server without a terminal open? |
After further testing, it seems to be based on a timeout? So after x mins, the instances close. |
Ahh yup the timeout is in case the connection drops so the browser can reconnect. If there is no reconnection within the timeout the terminal instance is killed. |
Does this issue extend to each reload of the page? I reloaded my page 3 times and the RAM usage went to 8GB with the SWAP being maxed to. maxed out my 4 cores as well and crashed all my docker containers. I then tried removing a bunch of my extensions, bracketizers, spelling checkers, CSS navigators and tabnine. I reckon whats happened is one of them was running in the background and then not closing again? I don't have time for a full testing session for all the extensions (tbh I don't need them) but I could provide a list for you guys? https://files.mcaq.me/mvrt.png |
That sounds like a bug to me. It should be reconnecting existing
instances but it sounds like we have a leak.
|
My bet with such high RAM usage is that it was probably tabnine. I would
experiment with it but it takes my server down so often it's not very ideal
hahaha
…On Mon, 25 Oct 2021, 20:02 Asher, ***@***.***> wrote:
That sounds like a bug to me. It should be reconnecting existing
instances but it sounds like we have a leak.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCTWHUG3SWSHHXJ6O2ICPTUIWST5ANCNFSM5F56W3ZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Ah yeah that makes sense. Each refresh spawns a new extension host but
the old one is supposed to be killed immediately. Maybe they are not
getting killed...?
They are labeled with `--type extensionHost` I think so you could check
the process listing and see if there is more than one.
|
In that case, give me a few days and I'll attempt to check
Thanks
…On Mon, 25 Oct 2021, 20:35 Asher, ***@***.***> wrote:
Ah yeah that makes sense. Each refresh spawns a new extension host but
the old one is supposed to be killed immediately. Maybe they are not
getting killed...?
They are labeled with `--type extensionHost` I think so you could check
the process listing and see if there is more than one.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4351 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALCTWHSOF3VT3NPHDONW72DUIWWO7ANCNFSM5F56W3ZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
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 |
OS/Web Information
code-server --version
:Steps to Reproduce
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.
The text was updated successfully, but these errors were encountered: