Coder.comC
Coder.com2y ago
25 replies
Pan

Not releasing the memory after Terraform task completed

Hi, I've noticed high memory usage after starting a workspace or updating the template.

Typically, it only takes around 100MB, but the memory usage spikes and persists when performing such tasks. I expect the memory usage to decrease after an interval with no further activity. However, it seems Coder does not intend to release this memory, and I often have to restart Coder to release them.

Besides, it uses ~300MB even after I have restarted Coder. Maybe it is because of the code-server or the JetBrains gateway?

For some contexts:
- My workspaces are running on a dedicated AWS EC2 instance. This Coder instance is only for managing my EC2s. I do not run any container on this.
- I am the only user in this coder instance. I only own two workspaces and one templates. The two workspaces are stopped for most time (for example, both of the workspaces are stopped at 20:20, but Coder still takes ~700MB instead of the baseline, 54MB.)
- I deploy Coder on Zeabur with the Docker image, ghcr.io/coder/coder:latest.

(Forwarded it from https://discord.com/channels/747933592273027093/971231372373033030/1250431665973624864)
CleanShot_2024-06-12_at_21.png
Was this page helpful?