Skip to content

Fix High CPU Usage.#121

Merged
ogaca-dd merged 1 commit intomasterfrom
olivierg/FixHighCpu
May 19, 2020
Merged

Fix High CPU Usage.#121
ogaca-dd merged 1 commit intomasterfrom
olivierg/FixHighCpu

Conversation

@ogaca-dd
Copy link
Copy Markdown
Contributor

Fix #119.

If few metrics are sent, StatsBufferize.OnIdle() can result in a spin loop.
This PR make sure the thread is slept in that case.

Copy link
Copy Markdown
Member

@truthbk truthbk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I have a couple of questions.

Comment thread src/StatsdClient/Bufferize/StatsBufferize.cs
@ogaca-dd ogaca-dd merged commit 720e0d1 into master May 19, 2020
@ogaca-dd ogaca-dd deleted the olivierg/FixHighCpu branch May 19, 2020 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

100% CPU load with version 5.0.0

2 participants