Excessive Runspace Usage - What do I do with this?

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

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

It’s a custom health check: PowerShellUniversal.HealthCheck.ExcessiveRunspaces - PowerShell Module | PowerShell Universal

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.

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.

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.

:face_with_spiral_eyes:Bummer. I’ll open an issue.