HangfireIO / HangfireIO/Hangfire

High CPU Usage , High latency

Open
#2,286 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

We use Hangfire 1.8.5. We have 3 physical servers, separate for sql server, Hangfire dashboard and windows service for hangfire background server.

Windows service server has 12 Processor and we set 36 background workers.

We have 30 recurring jobs each having different interval. Each recurring job enqueues few more jobs.

It works normally when start (or restart) the service when 36 or more jobs in the queue dashboard shows 36 jobs in “processing” and latency for each job is also very low.

But after couple of hours latency keeps increasing and very less number of jobs are in “processing” while it still shows 36 active workers. And cpu usage goes high.

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is identified. Start by reproducing the reported behavior with Hangfire 1.8.5 using the described three-server setup, 36 workers, and recurring jobs, then inspect how active workers, processing counts, latency, and CPU usage change over several hours. Done means identifying a reproducible cause and documenting or fixing the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.