[wasm][debugger] Tests: Spawn MonoProxy in a separate process to avoid excessive memory usage for tests #95488
Labels
arch-wasm
WebAssembly architecture
area-Debugger-mono
enhancement
Product code improvement that does NOT require public API changes/additions
Milestone
Some debugger test runs randomly get aborted on CI. See #89409
Running
GetPropertiesTests
in codespaces reveals that the RES memory usage of the process keeps increasing, reaching ~10G in 5mins. This suggests a memory leak.Looking at the test process with
dotnet dotnet-counters monitor --refresh-interval 1 -p ...
:One potential solution, and a good thing to do anyway would be to spawn
MonoProxy
in a separate process, for which we already have wrappers. Right now, we instantiateMonoProxy
for each test in the same test process which is overkill and not representative of user scenarios.relevant code
runtime/src/mono/wasm/debugger/DebuggerTestSuite/ChromeProvider.cs
Lines 92 to 97 in 4cb123a
cc @thaystg @ilonatommy
The text was updated successfully, but these errors were encountered: