Google.Cloud.Diagnostics.AspNetCore 1.0.0-beta 13 as very high CPU usage
See original GitHub issue@iantalarico as discussed on slack
dotnet --info
.NET Command Line Tools (2.0.0-preview2-006497)
Product Information:
Version: 2.0.0-preview2-006497
Commit SHA-1 hash: 06a2093335
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/2.0.0-preview2-006497/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview2-25407-01
Build : 40c565230930ead58a50719c0ec799df77bddee9
Just starting up the app with one of the following enabled in startup.cs (no need to call a controller or whatever):
// var tracingQPS = 1000;
// services.AddGoogleTrace(options =>
// {
// options.ProjectId = Configuration["AppSettings:GoogleProjectID"];
// options.TraceFallbackPredicate = TraceDecisionPredicate.Default;
// options.Options = TraceOptions.Create(tracingQPS);
// });
services.AddGoogleExceptionLogging(options =>
{
options.ProjectId = Configuration["AppSettings:GoogleProjectID"];
options.ServiceName = "API";
options.Version = "1.0";
});
The Use*()
is commented out but even if it is enabled, issue appears.
Google.Cloud.Diagnostics.AspNetCore 1.0.0-beta 13
-> dotnet goes above 100% CPU.
Google.Cloud.Diagnostics.AspNetCore 1.0.0-beta 11
-> dotnet has normal CPU usage.
Also happens with .net core 1.1.
Note: With such high CPU usage, App engine automatically scaled up the number of instances to the default max (20). Projected billing was around 700$ for three days for all our services…
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Google.Cloud.Diagnostics.AspNetCore
Google.Cloud.Diagnostics.AspNetCore is an ASP.NET Core instrumentation library for Google Logging, Error Reporting and Tracing.
Read more >Unable to resolve service for type 'Google ...
Common.IExceptionLogger' while attempting to activate 'Google.Cloud.Diagnostics.AspNetCore.ErrorReportingExceptionLoggerMiddleware' #1195.
Read more >Debug high CPU usage - .NET Core
A tutorial that walks you through debugging high CPU usage in .NET Core.
Read more >High server CPU usage on google cloud
Every time I examine CPU usage (via 'top', for instance), asd is pegged at 100%, more if I have an operation running. Is...
Read more >Google.Cloud.Diagnostics.AspNetCore 3.0.0-beta13 Not ...
Purpose. Use Google Cloud Diagnostics on a .net core 2.2 REST API, for Logging, Tracing and Error Reporting in two possible scenarios:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Jonathan34 New packages are now release. Let me know if you have other issues or questions.
https://www.nuget.org/packages/Google.Cloud.Diagnostics.AspNetCore/1.0.0-beta14
@Jonathan34 I found the issue. As soon as the PR is merged I will release a new version.