Hub Load Increases Progressively Over Extended Uptime (62+ Days)

I'm running a C8 Pro with firmware 2.4.3.172, and I've observed a persistent issue across multiple firmware versions over the past year.

The Problem

Hub load increases progressively over time, particularly after extended uptime periods. Typically, the pattern is:

  • Days 1-15: CPU usage remains around 5% or lower

  • Days 15-30: CPU usage begins increasing gradually

  • Days 30+: CPU usage continues climbing

Previously, I would update the hub before reaching critical levels (typically around 15% CPU usage at ~30 days). However, this time I decided to monitor the progression without rebooting to try to identify the root cause.

Current status: 62+ days of uptime with "Hub load is elevated" warning as of today.

Current Metrics

Apps and Devices loads are low:

  • Apps: 0.8%

  • Devices: 1.4%

CPU usage is approaching 40% according to the Hub Information Driver, which is significantly elevated despite low application-level activity.

Free memory has declined to approximately 800MB (compared to ~1.5GB at 10 days of uptime), suggesting a potential memory leak.

Analysis

Even accounting for the memory reduction, 800MB of free memory should not cause the observed CPU spike. The JVM would not typically trigger excessive stop-the-world garbage collection at this memory level unless explicitly configured to do so.

Since Apps, Devices, and GC are not showing abnormal activity in the logs, the high CPU usage appears to originate from the hub's core code. However, without thread dumps and heap dumps, it's difficult to pinpoint the exact cause.

System Configuration

For context, my setup includes:

  • Z-Wave antenna: disabled

  • Matter: disabled

  • Zigbee devices: ~100 (85+ are repeaters)

  • Other devices: LAN, Virtual, Parent devices

  • Apps: 6 installed and enabled (no Rule Machine or built-in dashboards)

  • Network: Ethernet connection

  • Logs: No warnings about long-running apps, problematic devices, or excessive debug logging

  • Overall stability: Excellent (apart from the CPU load issue)

Request

To help diagnose this issue, it would be valuable to:

  1. Enable heap dump collection for memory leak analysis

  2. Provide thread dump access for CPU usage investigation

  3. Identify any known memory leaks or CPU-intensive background processes in 2.4.3.172

While rebooting resolves the symptom, it doesn't address the underlying cause. I'd prefer to understand what's happening rather than simply reset the system periodically.

I'm thinking that you should update to the latest release and observe your results. There have been a lot of changes since 2.4.3.172.
Memory leaks were extensively chased and resolved.

As I said, I've been noticing this problem for over a year now, across multiple firmware versions. During this period I have installed some apps, uninstalled others, added several devices, removed and replaced several others, changed/updated apps and drivers, but mainly, removed everything I didn't actually need, and got rid of problematic software (at least the part I can control) and hardware, always with the focus on getting a very stable system.

A lot of changes, over a long period of time, and still, the one thing that didn't change was the CPU load issue, it was there all this time, and most likely before that too.

If you search for "memory" and "leak" on the 2.4.4,X release notes, you'll find nothing.
About CPU load there is one mention, but it is just about changing how it is reported, nothing related to high CPU load issues.

BTW: With the CPU load at 40%, it is normally VERY easy to spot the problem (or problems) with a few thread dumps.

The memory issues were all in the testing phase so you won't be able to search that.
The CPU reporting was also revamped to report, what I assume was, more accuracy.
I would do a full backup and try the latest release and monitor.
You might find things have changed for the better, or not, but at least that won't be an unknown.

The hub has rebooted by itself yesterday after ~63 days of uptime.
I'll will now update to the latest version and leave it running until it crashes again (or hopefully not), I'll let you know how it goes.

PS: There are no warnings or error messages on the logs around the time it rebooted, I'm not sure if it is a feature that triggered the reboot or if it really crashed.

Yeah, given memory leaks (not saying they are in the hub software or community apps/drivers), on my C8, anything north of 30 days of uptime was surprising - I have a reboot rule, setup for when free memory got below <180K

With my C8P, I've made it to 40 days, but I rebooted due to a version upgrade. - Given the additional memory in the C8P, I would guess 60 days is about an outer limit, but I really do think that's driven by your specific mix of drivers & apps.

I also agree, that limited diagnostic tools that we have, that you really can't see any memory leaks happening at the OS level, or outside of the JVM. - And as system memory and resources are exhausted, then I can believe CPU usage would climb (swapping, GC, etc.) -

I totally agree with your diagnostic tool request, but I don't likely see that happening given the current hub security model - Not to say you can't hack your way in, given enough effort - but even if you find some offending process (ZwaveJS, mDNS (Avahi or Bonjour), Jetty Webserver, DropBear, H2 DB, etc.) leaking resources, I'm not really sure what you could do about it. The hub is running on a older version of Linux 4.9, so that's just a few revs behind current releases.

Bottom line, I think expecting anything more that 90 days of uptime on a C8P without a reboot is wishful thinking - I'm curious if others have extended (months/years) uptimes - And given the frequency of updates/releases, you likely going to get some new release in that time frame, that will likely trigger you to reboot anyways. - And to be fair, IMHO some of this is driven by your hub's driver/app mix - So I'm guess "less stuff" will get you more days of uptime without CPU issues.

That all said, I'm curious to see if your CPU rise over the long term is repeatable, given the latest release, so please update this thread 30-60 days out..

A follow-up on this. I updated to 2.4.4.135 (released 2026-02-25) and rebooted on 2026-02-26 10:14. The release notes for that build mention "likely fixed a steady memory leak on C8 Pro hubs", so I started a fresh long-uptime run with frequent samples to see if the trend was gone.

Result, after ~70 days of uptime: the leak is still there β€” same shape, similar slope. Manually rebooted today (2026-05-07 11:20) because the symptoms were getting in the way of automations.

What the chart shows

  • Free memory falls almost linearly from 1384 MB at boot down to 35 MB at ~62 days uptime. That's roughly βˆ’21 MB/day of free RAM, sustained, with no plateau.

  • CPU stays relatively flat (3–10% on the 15-min average) for the first ~60 days, then starts climbing as free memory gets squeezed. Clearly the memory parameters of the JVM were changed in this version.

  • At ~61 days I started noticing the first delays in Zigbee command execution. Same hub, same automations, same routines that were instant at day 5 β€” now several hundred ms to a couple of seconds.

  • At ~69 days delays became frequent and longer (single Zigbee instructions occasionally taking ~7 s, web UI taking several seconds to load a device page on the first interaction). At that point CPU jumped from its ~6% baseline to 22–27% and free memory bounced back from ~50 MB to ~628 MB β€” which to me looks like a classic stop-the-world full GC finally running because the heap was exhausted, and continuing to run frequently from that point on (which would explain the persistently high CPU and the visible UI/Zigbee stalls).

Setup (unchanged from the original post)

  • C8 Pro, ethernet
  • ~100 Zigbee devices (~85 repeaters), 6 apps
  • Z-Wave radio disabled, Matter disabled
  • No custom apps/drivers added or changed during the run

My read

The underlying memory behavior on the C8 Pro is still leaking at roughly the same rate I was seeing on 2.4.3.172. The hub eventually self-recovers via aggressive GC, at the cost of sustained high CPU and user-visible Zigbee/UI lag, until something forces a reboot.

I have the raw 70-day dataset (uptime / cpu15Pct / cpuPct / freeMem) if it would help the platform team β€” happy to share it.

On thread dumps and heap dumps

Earlier in the thread the idea of capturing thread/heap dumps from a long-uptime hub was set aside as not really feasible. I'd like to gently push back on that, because both of these are the diagnostic artifacts for this class of bug, and I think the obstacles are smaller than they look.

Thread dumps are tiny β€” a few hundred KB even for a busy JVM β€” and they reveal stuck threads, lock contention, and runaway timers that no metric can show. The privacy / IP concern is solvable with a well-known pattern: a built-in take-thread-dump command that encrypts the output with a Hubitat-owned public key. The user uploads an opaque blob; only the Hubitat platform team can decrypt it. No app source, no tokens, no user state ever leaves the hub in plaintext.

Heap dumps are harder β€” they're large (likely 1–2 GB on a C8 Pro) and asking an already memory-starved JVM to allocate enough headroom to write and encrypt one may genuinely fail. But "may fail" isn't the same as "will fail", and we won't know unless we try. Two angles that mitigate the risk:

  1. Take the dump before the hub is critical. The leaky objects are already in the heap at day 20 (when free memory is still ~700 MB) β€” you don't need to wait for day 60 to see the signature. An earlier snapshot is smaller, safer to write, and just as useful for diff'ing against a freshly rebooted heap.

  2. If it aborts on a starved hub, that's also a data point. It tells the platform team exactly which subsystem can't make the allocation, which is itself useful.

A product perspective

I want to be clear this isn't a complaint about the team or the platform β€” Hubitat is by a wide margin the most reliable home-automation hub I've used, and that's why I keep investing time in writing these reports up. But, speaking as someone who has shipped and operated long-running services for many years: a product that needs to be rebooted every ~60 days to stay responsive is treating a symptom, not a cause. This class of bug is findable. It just needs the right diagnostic data captured from a hub that is actively exhibiting the symptom β€” which is exactly the hub I'm sitting in front of.

So a concrete offer: if the platform team has a debug build, a dev branch with extra instrumentation, an enable-tracing flag, or a script you'd like me to run on the next long-uptime cycle before I reboot β€” I'll run it. I have the time, the data is reproducible on my hub, and I'd much rather help find the root cause than reboot every two months indefinitely.

Appreciate your detailed data collection and debug offer.. Hopefully, after the V2.5 Beta ends (lots of work on Ring integration and built in graphing), your offer gets some traction with the HE staff. Time will tell.

Sort of a contrarian point of view. C8 Pro as my primary hub, a few hundred devices, a mix of ZigBee, z-wave, some local WiFi, Hue and Lutron integrations, many many Community apps. I participate in the beta and update within a day or two of each new release. Hubitat is an active hobby that my wife tolerates. I've been doing this for five or six years and I have never had to recover from a beta update. At this point the C8 Pro free memory seems to stabilize at about 1 GB. YMMV. On my previous C8 I had an auto reboot rule when free memory got to 200K which would occasionally be triggered. The rule is still there but I've not seen free memory below 950k on the C8 Pro.

But like you said, hub reboots when new beta is installed. It never gets a chance to get low. My C8Pro on beta hasn't been rebooted since April 9, so almost a month. It is currently sitting at 851272 and dropping daily.

Edit: Forgot to mention it has no devices, no apps, no automations, and no integrations. It is a spare hub.

I'm the opposite, hundreds of devices (every protocol possible), rules, integrations. No issues, a meshed C7 with a few bad children. Wish Hubitat had an apps/ device in use summary available.

You can currently see if a driver is being used by a device or not. A device or app might not ever be used until it is. How would the hub know?

Hmm, I can make a "take a heap snapshot and upload the compressed file" endpoint. But it would have to be enabled on case-by-case, one hub at a time basis. The impact of running the endpoint for the hub is non-trivial, it will slow things down dramatically.

Having a heap from an actual slowed down hub to analyze, well, that would be a real insight we don't normally have :slight_smile:

Happy to use it and help track down the issue. Want to move to DMs to avoid flooding the thread? We can post back here whatever ends up being relevant to others.

@gopher.ny I've sent you a DM ~3 days ago. Maybe you didn't see it :thinking:

Sharing an update with everyone β€” these runs take a long time, but I'm still on it.

A while back I sent @gopher.ny heap and thread dumps, and he found a leak. It looks like that wasn't the only one, though, and probably not the main one.

Same hub, same setup, nothing changed between the two runs. Free OS memory plotted against uptime.

  • 2.5.1.143 is leaking faster, not slower: -32 MB/day over days 0-21, against -27 MB/day for 2.4.4.135 over the exact same uptime window.
  • At 21.7 days of uptime it sits at 537 MB free, where 2.4.4.135 was at 804 MB β€” a 267 MB deficit, which puts it about 13 days ahead on the old curve.
  • The object heap accounts for only a fifth of it. In those 21 days the heap grew 155 MB (used heap 128 -> 238 MB) while 703 MB of free RAM disappeared, so roughly 549 MB is outside the object heap. Direct/NIO buffers are ruled out: they went from 0.7 to 3.3 MB in the whole run.
  • For reference, 2.4.4.135 bottomed out at 35 MB free at 62 days: Zigbee commands taking seconds, UI stalling, then a full GC bounced free memory back and CPU sat at 22-27% until I rebooted.

One objection I checked before posting, because it is the obvious one: freeOSMemory does count page cache. Taking thread and heap dumps this morning wrote ~93 MB of files and the metric dropped by almost exactly that much, then recovered ten minutes later. So a falling number is not, on its own, proof of a leak. This curve is not page cache, though: across the whole 21-day run there are only two 5-minute drops larger than 40 MB β€” the boot transient and one overnight β€” with no recurring pattern, and 71% of the total decline is smooth drift rather than file writes.

Source is GET /hub/advanced/freeOSMemoryHistory β€” 5-minute samples, 6,200 rows, the whole run with no gaps. Happy to send the raw CSV.

I have not taken 2.5.1.172 ("fixed an mDNS related memory leak") yet, so this run is still intact.

@gopher.ny Please tell me which is more useful: keep it running until it hits the floor, or update now and start a clean run.

Again, thx for your continued efforts here.

Please update now and start a clean run. Bugs have been fixed in 2.5.1, hopefully faster than they are introduced :slight_smile:

And thank you for providing this information! I rarely have a hub running without a reboot for more than a few day due to testing and all that...

Will do β€” updating now and starting a clean run. I'll come back with the same chart once it has enough uptime to be worth comparing.

One last data point from the 2.5.1.143 run before I wipe it, because it rules something out. The heap dump released nothing. Free OS memory and committed heap were the same either side of it.
If the heap dump does a full GC first, as I'd expect, then whatever is accumulating is not garbage waiting to be collected: the GC gave nothing back to the OS.

Final state of that run: 22 days uptime, 521 MB free, against 793 MB where 2.4.4.135 sat at the same uptime.

And thanks for looking at this. Happy to keep being the long-run test bench.

@gopher.ny coming back with the clean run on 2.5.1.174, as promised. It ended at 37 days, when the hub rebooted itself β€” Hub Events: Hub memory is critically low, rebooting now (Oct 3) β€” with ~830 MB of OS memory still free and the Java heap at its ceiling.

Outside the heap, the mDNS fix held to the end: 2.5.1.174 finished with ~830 MB free, 331 MB above where 2.4.4.135 was at the same uptime. At ~6 MB/day it is no longer what limits uptime.

Inside the heap, nothing changed:

  • The committed heap grew in steps and stopped at 370 MB on day 23; it never moved again for the last 14 days (3,929 samples).
  • The daily minimum of used heap β€” what survives GC each day β€” rose 88 β†’ 302 MB, about +5.7 MB/day, and never leveled off (2.5.1.143 did +5.0 MB/day over its 22 days).
  • Daily peaks were ~357 MB in the last days, so normal allocation was running into the ceiling.
  • No warning beforehand: CPU was normal at the last sample, 30 minutes before, and the logs show nothing unusual up to the reboot.

Questions:

  1. Is the lowMemory reboot triggered by Java heap headroom? And is 370 MB the max heap on the C8 Pro?
  2. Would a heap dump taken near the ceiling help find what keeps accumulating? I can trigger one around day 30 of the next run.

Updating to 2.5.2.129 now and starting a new clean run. Since 2.5.2 reportedly turns on OS memory compression, free OS memory won't be comparable across versions; the heap floor will be.

Side note, not a fix request: three windows are cut from the 2.5.1.174 curve. Each time, a mains outage took my network down for 4+ minutes while the hub stayed up on its battery-backed supply. Afterwards the hub ran at ~4Γ— CPU and lost memory outside the heap, until the next short network blip. A faulty towel warmer tripping the RCD is the trigger, and I'm getting that fixed.

Raw 5-minute CSVs for all runs available on request.