VS Code Version:
- Working Version: 1.120.0
- Issue Observed: All versions greater than 1.120.0 example 1.127.0
- Remote-SSH Extension: Remote - SSH: Editing Configuration Files; Microsoft; 0.87.0
OS Version:
Local Machine: Windows 11; 64-bit
Remote Machine:
- Ubuntu; VERSION=20.04.6
- 16 Core
- Remote connection via SSH
Steps to Reproduce:
- Launch Visual Studio Code version 1.127.0 (greater than 1.120.0).
- Connect to a remote Linux machine using the Remote-SSH extension.
- Open the same workspace/repository that works correctly with VS Code 1.120.0.
- Allow the workspace and extensions to initialize.
- Observe increasing CPU and memory consumption on the remote
host by VS Code related processes.
- Monitor the remote machine using:
top
ps -ef
- One or more processes named "MainThread" begin consuming excessive
CPU resources (up to ~100% CPU).
- VS Code becomes sluggish/unresponsive and eventually encounters
memory-related instability/OOM symptoms.
- Repeat the same steps using VS Code 1.120.0.
- Observe that the issue does not occur and the remote session remains stable.
Expected Result:
- Remote-SSH connection should remain stable.
- VS Code should operate normally without excessive CPU or memory consumption.
- Behavior should be consistent with VS Code 1.120.0.
Actual Result:
- (reason: 'oom', code:'-536870904')Issue occurs only in VS Code versions newer than 1.120.0.
- High CPU utilization observed on the remote machine.
- Processes displayed as "MainThread" consume significant CPU resources (up to ~100%).
- Remote development experience becomes progressively slower.
- Memory consumption increases over time, eventually resulting in
OOM-related behavior or VS Code instability.
- Issue is reproducible and does not occur with VS Code 1.120.0.
Troubleshooting Performed:
- Deleted ~/.vscode-server and allowed server reinstallation.
- Cleared VS Code caches.
- Modified settings.json using various recommended workarounds.
- Reproduced using the same remote host and workspace.
- Verified sufficient memory availability on the remote machine.
- Verified issue is specific to Remote-SSH usage.
- Verified issue is not reproducible in VS Code 1.120.0.
Additional Information:
top output on remote machine during issue:
Mem: 40960 MiB total
Free: 21806 MiB
Available: 31099 MiB
The remote system is not under memory pressure when the issue starts.
Observed process:
PID 82202
COMMAND: MainThread
CPU: ~99.7%
RES: ~832 MB
Another MainThread process:
PID 82190
CPU: ~3.3%
RES: ~690 MB
This indicates the problem is not caused by insufficient RAM on
the remote host but appears to be a regression introduced after
VS Code 1.120.0 during Remote-SSH operation.
Regression:
VS Code 1.120.0 → No issue
VS Code > 1.120.0 → High CPU / memory growth / eventual OOM behavior
VS Code Version:
OS Version:
Local Machine: Windows 11; 64-bit
Remote Machine:
Steps to Reproduce:
host by VS Code related processes.
top
ps -ef
CPU resources (up to ~100% CPU).
memory-related instability/OOM symptoms.
Expected Result:
Actual Result:
OOM-related behavior or VS Code instability.
Troubleshooting Performed:
Additional Information:
top output on remote machine during issue:
Mem: 40960 MiB total
Free: 21806 MiB
Available: 31099 MiB
The remote system is not under memory pressure when the issue starts.
Observed process:
PID 82202
COMMAND: MainThread
CPU: ~99.7%
RES: ~832 MB
Another MainThread process:
PID 82190
CPU: ~3.3%
RES: ~690 MB
This indicates the problem is not caused by insufficient RAM on
the remote host but appears to be a regression introduced after
VS Code 1.120.0 during Remote-SSH operation.
Regression:
VS Code 1.120.0 → No issue
VS Code > 1.120.0 → High CPU / memory growth / eventual OOM behavior