Skip to content
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

Codium using up too many resources #805

Closed
wibed opened this issue Aug 23, 2021 · 6 comments
Closed

Codium using up too many resources #805

wibed opened this issue Aug 23, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@wibed
Copy link

wibed commented Aug 23, 2021

Describe the bug
vscode had the issue that until telemetry has been turned off, it started eating up resources aggressively.
so i moved to vscodium. but vscodium shows the same behaviour. without the caps to turn the aggressive process off.

Please confirm that this problem is VSCodium-specific

  • [ x] This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.

Please confirm that the issue/resolution isn't already documented

  • [ x] I checked the Docs page and my issue is not mentioned there.

To Reproduce
Steps to reproduce the behavior:

  1. clone repo https://github.com/wibed/ideVScode
  2. run it, it may need some tweeks.
  3. watch all cpu cores get exhausted at 99%

Expected behavior
to not use up all resources running an ide

Desktop (please complete the following information):

  • OS: void linux
  • Architecture amd64-musl
  • Version 1.59.1

Additional context
the only thing you need is to have X11 display at /tmp/.X11-unix to run the container
example:

make sync && make run
@wibed wibed added the bug Something isn't working label Aug 23, 2021
@wibed
Copy link
Author

wibed commented Aug 24, 2021

it seems codium is repeating the following log message ad infinitum, leading to a high cpu usage:

[23:0824/031636.378710:INFO:CONSOLE(630)] "%cTRACE color: #888 [File Watcher (node.js)] [CHANGED] /home/user/logs/20210824T031634/renderer1.log", source: file:///usr/share/codium/resources/app/out/vs/workbench/workbench.desktop.main.js (630)

i tried starting codium with:

  • --disable-gpu
  • --log off/trace

to no avail

full log file: https://termbin.com/bnbw

@daiyam
Copy link
Member

daiyam commented Oct 1, 2021

Yep, it's a known issue of VSCode. It is due that the log file is watched and a new log entry is generated to indicate that event. So a perfect loop... By removing the trace level, that behavior is disabled.

@wibed
Copy link
Author

wibed commented Oct 2, 2021

@daiyam could you explain or linkt to a solution on how to disable it.

i have created a launch.json for the nodejs debugger and added

"logging": {
    "moduleLoad": false
}

i also disabled the overall file watchers using the pattern "**/**"

to the configuration section. it still does output these messages though

@daiyam
Copy link
Member

daiyam commented Oct 2, 2021

Just avoid to launch codium with the option --log trace.
The code source might need to be patched but don't quite remember (I've looked at this problem a few weeks ago).

@wibed
Copy link
Author

wibed commented Oct 2, 2021

microsoft/vscode#132483 (comment)

it seems to be related to this issue

EDIT: i tested and can confirm, the latest insider build fixes the "open a new watcher on event read loop"

@wibed wibed closed this as completed Oct 2, 2021
@daiyam
Copy link
Member

daiyam commented Oct 2, 2021

great news!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants