-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Extremely high CPU usage #1709
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
Can you follow the steps here: and post the logs? |
@karimsa Any luck? |
I haven't had a chance to pull logs off the device yet. One thing I noticed is that the CPU spikes don't happen as often with the default log level as they do with a more verbose log level. Also, once I close the code-server tab for a bit and then open it again, the problem resolves. I noticed that the processes in the shell seem to be tied to the browser's session. Is there a reason for that? Why isn't the shell + vscode state stored in the backend and then copied back over on reload? |
I can't say for sure but it might be because you can use something like tmux or screen to persist your sessions. I haven't seen any open issues for persisting the terminals so it doesn't look like it's on the VS Code team's roadmap. |
I'm not sure about the CPU usage but it might be worth fixing the spdlog issue to see if that affects anything. It looks like the Docker image might be missing some dependencies. https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites #1826 (comment) may also help, although it's specific to FreeBSD. |
@code-asher I think the above issue is #1961 |
Ah yeah true there was mention there about spdlog in that issue. I don't really know what the bindings error actually means, I've just noticed it seems to get fixed if certain system dependencies are installed. I could see it being caused by issues with our packaging as well though. |
Should also be noted that the above issue is occurring in |
Anyone still seeing this on the latest releases? |
Going to close as there hasn't been a response in a long time! |
I'm seeing 200% CPU usage and 40 GB of virtual memory usage by Chrome when the code-server tab is open, almost consistently. Is there any advice on what settings for code-server can help lower the CPU usage?
Chrome 81.0.4044.138 (Official Build) (64-bit)
macOS Catalina 10.15
docker running on Ubuntu 20.04 LTS
x86_64
code-server --version
:3.3.1 6f1309795e1cb930edba68cdc7c3dcaa01da0ab3
The text was updated successfully, but these errors were encountered: