Very high CPU usage
Hello, I've recently noticed a slowdown in my server, after reviewing the performance statistics I noticed an increase in CPU usage coinciding with my switch from homepage to Homarr, After checking container CPU usage I've verified that Homarr is using a large amount of CPU, second only to qBittorrent. Can I get some suggestions on how to reduce the CPU usage?
Solution:Jump to solution
I understand, but as mentioned above, this is & was a low end CPU that simply cannot run a lot in parallel. It also is EoL and no longer supported nor will receive any updates. Feel free to upvote issues on GitHub or submit a new one to change the background job intervals, but there isn't much we can do to reduce usage. Homarr also uses SSR, meaning that some calculations are performed on the server and not on your browser.
15 Replies
Thank you for submitting a support request.
Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
What is "very high" for you? Since Homarr runs a lot of requests in the background, it is normal to see some usage. You can remove integrations or disable app pings to reduce usage.
Is there a way to disable integrations in the background? So far I've tried removing the qBittorrent integrations since 99% of the time I don't need to see those
When I say very high I mean that it is always near the top of the CPU usage in the OMV statistics despite being in the background, after checking that I had closed all tabs
No, you cannot disable the background jobs at the moment. And since Homarr is communicating to all of your integrations multiple times per minute, the higher usage is expected
Then I'm going to try just removing all of them, are there any plans to add this setting? I would much rather have a longer loading time for integrations than to grind my whole server to a halt
I'm confused. You're describing "more usage than other apps" which doesn't align with "grinding to a halt ". What is your CPU? Post your hardware details please and how much % Homarr is using.
I was exaggerating a bit
And please give some details on how you are running Homarr. If you run it in development mode, it will be significantly slower
I'm running prod
So... the usage is negligible?
I'm confused what your problem is... And yes, we'll eventually implement a slider to adjust the interval of background jobs. But it has a low priority at the moment
The CPU is a Intel Celeron N3450
Well.. That CPU is old and EoL. So I'd say it's expected for Homarr to be slightly slower and taking up more % than on a newer CPU
It's currently running close to it's limit and it seems like adding the integrations was adding enough extra use so that the rest of the services were CPU bottlenecked, after disabling the integrations everything seems much snappier
Solution
I understand, but as mentioned above, this is & was a low end CPU that simply cannot run a lot in parallel. It also is EoL and no longer supported nor will receive any updates. Feel free to upvote issues on GitHub or submit a new one to change the background job intervals, but there isn't much we can do to reduce usage. Homarr also uses SSR, meaning that some calculations are performed on the server and not on your browser.
I will mark this as answered now, since there isn't much left we can do via this support ticket anyway. We do not track issues in Discord, so please search for existing issues and upvote them or submit a new issue.