Studio Code Server add-on - memory usage

Just trying out the Studio Code Server add-on.

I’m aware that it uses a lot of resources, but its memory usage seems to be creeping up slowly and staying high even when I’m not using it. Is this normal behaviour?

The add-on was installed on January 9 and I stopped it running on 14 and 15 Jan (the drop today is me installing 2025.1.2).

I’m running HA on an i3 PC with 8 GB RAM

  • Core 2025.1.2
  • Supervisor 2024.12.3
  • Operating System 14.1
  • Frontend 20250109.0

Yeah. I shut it down when not using it.

Can’t find the GitHub URL, but there was a huge issue about the Studio Code Server addon memory usage.

Came here because of


Older issues:

I suspect that for each session that you use Studio Code server it will reserve some memory and not release it. If you edit on different tabs / browsers / computers it will add up. As you can see in the memory usage graph (sensor.memory_use_percent) below the memory usage went down from 92% to 38%, more than half the memory on my system, this was when I did a restart of the Studio Code server. Just before the restart, I started a new session and memory usage went up to above 92%. On Aug 10 around 21:00 I started an other session where I opened multiple files, and the usage went from 70% to almost 90%, and this was never released.


The advantage is that when you go back to a session it remembers which files were open, etc. But for smaller systems like mine (I have 3.5G allocated to the VM that runs HAOS), this can cause issues if you edit many files from different tabs/browsers/computers.

It would be nice if we could see the amount of memory that this addon is using, so that we could have an automation send a message if the memory usage is too high. For now, I will make an automation that warns me if the HASS OS memory is above 90%, so that I can restart the studio code.

1 Like

Nah, instead of workarounds (which I have in place already for a long time) the addon should just behave nicely out of the box in terms of resource usage.

A timeout after which resources are released would be the usual behavior. Or a switch to not store the session (for longer than X minutes/hours). The core issue is that currently it just never releases allocated memory resources.

I agree, the addon should behave nicely, but as long as it doesn’t…

By the way, it affects cpu usage as well. When I start more sessions, cpu usage goes up and stays up. After reset of addon, cpu usage stays low.

See also: Out of control CPU while using · Issue #800 · hassio-addons/addon-vscode · GitHub and Home Assistant Community Add-on: Studio Code Server Bug causing excessive CPU Usage \ Memory Usage · Issue #1002 · hassio-addons/addon-vscode · GitHub

You can when using HAOS: Go to settings, integrations, supervisor and enble the memory and cpu entities for addons you want to monitor. Then create an automation if it exceeds your wishes, or put them in a graph:

Well the addon also eats a lot of SWAP space and that is not available to monitor on an addon basis.

The default update interval for the supervisor addon entities by the way is 5 minutes.