prometheus / prometheus/client_ruby
CPU usage growing over time with DirectFileStore
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 558
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
We've got an issue on our application where the CPU usage will slowly grow over time (eventually getting to 100%, unless we reboot the app to bring it back down):

We're using the DirectFileStore and find that if we clear the bin files manually (as is done on app boot) the CPU usage immediately drops off a cliff:
No issues with memory usage. Any thoughts on what could be causing this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the CPU growth with DirectFileStore and compare behavior before and after clearing the bin files, as described in the issue. Trace the DirectFileStore and application-boot cleanup paths; done means identifying the cause and demonstrating that CPU usage no longer grows over time without a reboot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100