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.

High cpu load after upgrading to 13.1.0

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Product

Hot Chocolate

Describe the bug

Once updated from HC 13.0.5 to 13.1.0 application suddenly starts consuming a lot of CPU. Not immediately after start but in 5-15 minutes. Essentially requests are stopped from being processed. Queries start to take up to 1 minute to execute. UPD: Important observation: subscriptions initiate exponential CPU utilisation growth. around 100 subscriptions essentially render the service unresponsive

Grafana dashboard metric illustration of the issue: image

CPU profiling attempts were done using perf tool. I didn’t observe anything that stands out from default .net classes. All CPU consumption is taken by classes related to the ThreadPool. Flame graph generated by the profiling report shows even less data: image

Steps to reproduce

  1. Update to version 13.1.0 or 14 preview
  2. Make requests
  3. Wait
  4. Check metrics

Relevant log output

N/A

Additional Context?

net7.0 DB: MongoDB hosting: Docker, Kubernetes. (base image: mcr.microsoft.com/dotnet/aspnet:7.0) HC websocket subscriptions with redis adapter Authorization enabled Data Loaders are not used - resolvers only if that matters

Version

13.1.0

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelstaibcommented, Jun 1, 2023

This one is now fixed with 13.2.0-preview.2

0reactions
janveldhuiscommented, Jun 1, 2023

I have the same problem, using .NET 6 with version HC 13.1.0, running with “dotnet run” on my desktop.

In Banana Cake Pop when I start “Run” on a subscription everything is ok

Then when I press “Cancel”, to stop the subscription, my app starts to cpu spike in the Task manager, this is instant with the Subscription Protocol set to Auto, GraphQL WebSocket or Apollo WebSocket, with GraphQL SSE, there is a wait time of around 6 seconds, before the cpu usage starts to spike.

Read more comments on GitHub >

github_iconTop Results From Across the Web

M1 MacBook Pro - Ventura Process CPU Usage
Hello, Curious if anyone is noticing the below behavior after updating to Ventura. I have an 13 inch M1 MacBook Pro/8GB/256GB that ...
Read more >
kernel_task using 700% CPU, graphics memory full ...
The kernel_task CPU usage may become unreasonably high if the CPU temperature rises due to the following factors:.
Read more >
High CPU usage since 2023.4.x with zha and google ...
The problem Before the 2023.4.x update, my average CPU usage on Proxmox was around 1%. However, after the update, the minimum average usage ......
Read more >
kernelmanagerd process causing high cpu u…
I've just updated to macOS Big Sur 11.0. and I'm facing a huge battery drain and cpu usage probably caused by this "kernelmanagerd"...
Read more >
ADC Mgmt CPU maxout 100% constantly doing log ...
Symptoms or Error. ADC exhibit 100% mgmt CPU utilization constantly. Close examination to running processes using TOP command you can see the "dozip"...
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