Excessive Runspace Usage - What do I do with this?

Excessive Runspace Usage - What do I do with this?

avatar

Sorry, I guess it’s a total noob question, because I can’t find anything in the forum or the official docs.



cee61e1b7b5704fe2816fc542054a3d16714192c
What am I supposed to do when I get this health check warning?

cee61e1b7b5704fe2816fc542054a3d16714192c.png

All Comments (5)

avatar

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Sure, I recall installing it now. I followed your link, but do you have one that explains what I might do in response to this warning? Cheers.

avatar

You can see where they are coming from by going to the processes page from the home page. If you expand the server process you can see how many runspaces are there. It might not be anything and kinda depends on what you’re doing in the integrated environment.

Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Ok, that gets me closer. Located the processes, clicked View, then tried to expand one, and OUCH!

An error occured. Status(StatusCode="Cancelled", Detail="CANCELLED")

at ProtoBuf.Grpc.Internal.Reshape.UnaryTaskAsyncImpl[TRequest,TResponse](AsyncUnaryCall`1 call, MetadataContext metadata, CancellationToken cancellationToken) in /_/src/protobuf-net.Grpc/Internal/Reshape.cs:line 554 at Universal.Server.Services.ApiGrpc.GetAssemblies() in D:\a\universal\universal\src\PowerShellUniversal.Api\ApiGrpc.cs:line 198 at PowerShellUniversal.Automation.JobProcessManager.LoadAssembliesAsync(ChildProcess childProcess) in D:\a\universal\universal\src\PowerShellUniversal.Automation\JobProcessManager.cs:line 243 at Universal.Server.Pages.Platform.Assemblies.OnInitializedAsync() in D:\a\universal\universal\src\Universal.Server\Pages\Platform\Assemblies.razor:line 22 at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)


This is on 5.4.4 with IIS.

avatar

Bummer. I’ll open an issue.

Adam Driscoll
PowerShell Expert and Developer at Devolutions