PSU using 100% CPU

@Support @adam
We installed PSU 2.10 last night and this morning our server is running 100% CPU.
Nothing has changed and 2.9 was using 1/3 of the resources it is using now.

Prior to this, we noticed four instances of the same job running multiple times, like the first process never finished.
I tried restarting the service to free up the process and it did not start up, shows this in the event viewer:

Application: Universal.Server.exe
CoreCLR Version: 5.0.921.35908
.NET Version: 5.0.9
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AggregateException: One or more hosted services failed to stop. (The operation was canceled.)
 ---> System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at Hangfire.Processing.TaskExtensions.WaitOneAsync(WaitHandle waitHandle, TimeSpan timeout, CancellationToken token)
   at Hangfire.Processing.BackgroundDispatcher.WaitAsync(TimeSpan timeout, CancellationToken cancellationToken)
   at Hangfire.Server.BackgroundProcessingServer.WaitForShutdownAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.Internal.Host.StopAsync(CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at Microsoft.Extensions.Hosting.Internal.Host.StopAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.WaitForShutdownAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Universal.Server.Program.<>c__DisplayClass4_0.<Main>b__0(Options o) in D:\a\universal\universal\src\Universal.Server\Program.cs:line 68
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at Universal.Server.Program.Main(String[] args) in D:\a\universal\universal\src\Universal.Server\Program.cs:line 49

Faulting application name: Universal.Server.exe, version:, time stamp: 0x60e896d9
Faulting module name: KERNELBASE.dll, version: 10.0.17763.2686, time stamp: 0x42f11d96
Exception code: 0xe0434352
Fault offset: 0x0000000000039319
Faulting process id: 0x1c20
Faulting application start time: 0x01d8506084d59b1a
Faulting application path: C:\Program Files (x86)\Universal\Universal.Server.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: 55968c06-e643-4e0e-ba29-031da8839631
Faulting package full name: 
Faulting package-relative application ID: 
Product: PowerShell Universal
Version: 2.10

Can you please open a support case for this by email I want to collect some info like memory dumps and learn more about the script and we can do that without sharing it all publicly. Thanks.

1 Like

Fixed in 2.10.1 :smiley: