DiamondLightSource / DiamondLightSource/blueapi
Plandev Memory Instability
- Dominant language
- Python
- Stars
- 13
- Forks
- 13
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 25
Description
Using Plandev to debug Blueapi opens a VSCode remote server within the container. If the developer's local instance of VSCode is closed without using `File` > `close remote connection`, the remote server is not immediately terminated. (It looks like it is eventually, but potentially upwards of 7-24 hours later.)
If a subsequent connection is made, a new instance of the VSCode remote server is started. Initial testing on P46 suggests that this can be upwards of 300Mb memory use per instance. Long-running pods with multiple connections per day can quickly stack up enough VSCode remote instances to become unstable.
VSCode processes can be seen by exec'ing into the Blueapi container, running `ps -ef` and observing the number of commands starting with `/home/ubuntu/.vscode-server/...`. Memory usage can be seen in the `Kubernetes / Compute Resources / Pod` Grafana dashboard.
## Acceptance Criteria
- Normal usage of Plandev does not cause instability
Contributor guide
Assessment
This issue has not been assessed yet.