GithubHelp home page GithubHelp logo

High cpu load about addon-vscode HOT 10 CLOSED

JanosBerke avatar JanosBerke commented on June 12, 2024 4
High cpu load

from addon-vscode.

Comments (10)

jnnsrctr avatar jnnsrctr commented on June 12, 2024 5

Having the same issue. Raspberry Pi 4 reports very high RAM usage, too. Device gets very toasty. Have to disable the addon until fixed.

from addon-vscode.

mplinuxgeek avatar mplinuxgeek commented on June 12, 2024 1

Similar issue, seeing CPU and mem increasing while addon is running, once it gets into the 90's the system starts becoming unresponsive.

Nothing abnormal in the logs:

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service base-addon-banner: starting

-----------------------------------------------------------
 Add-on: Studio Code Server
 Fully featured Visual Studio Code (VSCode) experience integrated in the Home Assistant frontend.
-----------------------------------------------------------
 Add-on version: 5.15.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.4  (amd64 / generic-x86-64)
 Home Assistant Core: 2024.1.5
 Home Assistant Supervisor: 2023.12.1
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-timezone: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
[11:53:05] INFO: Configuring timezone (Australia/Adelaide)...
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-user: starting
s6-rc: info: service init-mysql: starting
s6-rc: info: service init-mosquitto: starting
s6-rc: info: service init-code-server: starting
s6-rc: info: service init-code-server successfully started
s6-rc: info: service init-mysql successfully started
s6-rc: info: service init-user successfully started
s6-rc: info: service code-server: starting
s6-rc: info: service code-server successfully started
[11:53:05] INFO: Starting code-server...
s6-rc: info: service init-mosquitto successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[2024-01-26T01:23:06.008Z] info  Wrote default config file to /root/.config/code-server/config.yaml
[2024-01-26T01:23:06.351Z] info  code-server 4.20.0 d0215eca8804d0be5d3551c39404e336032c3141
[2024-01-26T01:23:06.352Z] info  Using user-data-dir /data/vscode
[2024-01-26T01:23:06.366Z] info  Using config file /root/.config/code-server/config.yaml
[2024-01-26T01:23:06.366Z] info  HTTP server listening on http://0.0.0.0:1337/
[2024-01-26T01:23:06.366Z] info    - Authentication is disabled
[2024-01-26T01:23:06.366Z] info    - Not serving HTTPS
[2024-01-26T01:23:06.366Z] info  Session server listening on /data/vscode/code-server-ipc.sock
[11:53:34] 




[11:53:34] Extension host agent started.
File not found: /usr/local/lib/code-server/lib/vscode/out/vsda_bg.wasm
File not found: /usr/local/lib/code-server/lib/vscode/out/vsda.js
[11:53:36] [172.30.32.2][2a551e65][ManagementConnection] New connection established.
[11:53:36] [172.30.32.2][79e479d0][ExtensionHostConnection] New connection established.
[11:53:37] [172.30.32.2][79e479d0][ExtensionHostConnection] <533> Launched Extension Host Process.
File not found: /usr/local/lib/code-server/lib/vscode/extensions/keesschollaart.vscode-home-assistant-1.39.0/jinja-language-configuration.json
[11:57:30] [172.30.32.2][2a551e65][ManagementConnection] The client has disconnected gracefully, so the connection will be disposed.
[11:57:30] [172.30.32.2][79e479d0][ExtensionHostConnection] <533> Extension Host Process exited with code: 0, signal: null.

Screenshot showing CPU and Memory usage, where it starts increasing just before 12pm is when I started the addon, and where it drops is when I stopped the addon.
ScreenShot Tool -20240126135341

For context this is an Intel i7-6700T system (4 cores, 8 threads) with 8GB RAM.

from addon-vscode.

DR-Apples avatar DR-Apples commented on June 12, 2024

I also experience the same problem. By opening VSCode, the CPU load of the addon goes to 95% + percent, to the point Home Assistant almost freezes. Using Raspberry Pi 4b 8 GB ram

from addon-vscode.

iotola avatar iotola commented on June 12, 2024

Yes, this issue is affecting me as well. VSCode seems to leak memory and eventually starts to put demands on the swap file which increases CPU load making the system slowly less unresponsive. It took about a week before overwhelmed my NUC system (4GB of RAM and 1 GB Swap). A simple restart on the VScode extension cleared the problem.

from addon-vscode.

EsOmEs avatar EsOmEs commented on June 12, 2024

I do have the same issue. RPi5 8Gb at 90% CPU and 80% ram usage just for this AddOn. Very sad as I like the funktionality

from addon-vscode.

Ftown14 avatar Ftown14 commented on June 12, 2024

Same issue as #565 that has been an issue for some since Jan 2023, mine started about 4 months ago. Have to keep it disabled or Pi will overhear and shutdown

from addon-vscode.

namadori avatar namadori commented on June 12, 2024

studio code

Same here, the only workaround is to start the addon, do the changes and then stop it again.
Any alternatives out there?

from addon-vscode.

JulianBerkner avatar JulianBerkner commented on June 12, 2024

Hi, just found this reddit thread, where there seems to be a solution. I did not try it in any way, just posting it to inform you.
https://www.reddit.com/r/homeassistant/comments/1amue9p/vscode_addon_burning_the_cpu_even_when_closed/

from addon-vscode.

Ftown14 avatar Ftown14 commented on June 12, 2024

I tried that fix previously and it did not work for me, I tried again just to be sure. This led me to see what I could figure out. Go see my post in the issue thread ##565 (comment)

This 100% fixed the problem for me, but creates it's own with the loss of features.

from addon-vscode.

github-actions avatar github-actions commented on June 12, 2024

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

from addon-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.