I'll start by saying this could likely be a user error (in which case would appreciate any advice). So through the course of development I will often close my R session and launch a new R process several times (in order to ensure a clean environment). Whilst doing this it appears that a new rlsp process is launched and the old one is not removed / cleaned up. Each process holds onto quite a large amount of memory which is slowly leading to memory exhaustion on my machine.

I am running vscode on Ubuntu Focal from windows wsl.
(unless I am misreading this and there is supposed to be that many rlsp processes?)
I'll start by saying this could likely be a user error (in which case would appreciate any advice). So through the course of development I will often close my R session and launch a new R process several times (in order to ensure a clean environment). Whilst doing this it appears that a new rlsp process is launched and the old one is not removed / cleaned up. Each process holds onto quite a large amount of memory which is slowly leading to memory exhaustion on my machine.
I am running vscode on Ubuntu Focal from windows wsl.
(unless I am misreading this and there is supposed to be that many rlsp processes?)