question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
iantalaricocommented, Aug 8, 2017

@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

1reaction
iantalaricocommented, Aug 7, 2017

@Jonathan34 I found the issue. As soon as the PR is merged I will release a new version.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found