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

Yes, that would provide some insights. If you notice it flatlining like that, please take one. Once it is at a stage where reboot is necessary, it probably doesn't have the headroom to take the heap dump any more.

The 2.5.2 is a bit of a reset, so I'm curious to see what the slope is going to be like over long(ish) term.

And a big thank you for this info and for helping us improve the hub!

@gopher.ny I took the heap dump you asked for, right after the committed heap flatlined on 2.5.2.129: hubitat-heap-20261028-155145.hprof.gz and hubitat-thread-20261028-155258.txt.gz (hub time, UTCβˆ’3), at 24 days of uptime, 13.5 hours after the committed heap stopped growing.

About the 2.5.2 slope you were curious about: inside the heap, 2.5.2 behaves exactly like 2.5.1.174.

  • The daily minimum of used heap rose +5.6 MB/day on 2.5.2 and +5.5 MB/day on 2.5.1.174 over days 8–23. 2.5.2 started ~15 MB higher and is now ~10 MB above 2.5.1.174 at the same uptime (238 vs 228 MB on day 23). In 24 days the floor never dropped by more than 1 MB from one day to the next.
  • The committed heap stopped at exactly the same value, 378,752 KB (370 MB), on the same day: day 23.4 on 2.5.2, day 23.3 on 2.5.1.174.
  • Most of the committed-heap growth happens in the same few minutes every night, 02:15–02:20, which is when my nightly cloud backup runs. That covers 7 of the 10 steps of 4 MB or more after the first day on 2.5.2 (11 of 16 on 2.5.1.174), plus the step that reached the ceiling on both runs (02:18 and 02:20).
  • If 2.5.2 follows 2.5.1.174 from here, the lowMemory reboot should come around day 37 (~Nov 10).

The dump itself took about a minute. The Zigbee radio dropped for ~3 s in the middle (Hub Events: offline 15:52:17, online 15:52:20) and came back on its own. Afterwards the committed heap didn't shrink and used heap stayed above that day's floor, the same as with the dump on Aug 27.

Questions:

  1. Still open from my last post: is the lowMemory reboot triggered by Java heap headroom, and is 370 MB the max heap on the C8 Pro? Both versions stopping at the same 378,752 KB makes it look like -Xmx.
  2. Does the heap dump force a full GC before writing? Neither of my two dumps brought used heap below the daily floor, but that only shows the floor is live data if a full GC actually ran.

Outside the heap, 2.5.2 looks fine (~970 MB of free OS memory at day 24), though with the new memory compression that number doesn't compare with 2.5.1.

**C-8 Pro 2.5.2.139: "Hub memory is critically low" reboots after a 5–6 hour heap/CPU runaway, while apps and drivers are idle**

Following this thread because my hub hits the same trigger described above: the Java heap reaches its ceiling (~370 MB) and the hub reboots with "Hub memory is critically low" while ~880 MB of OS memory is still free. My pattern is different from a slow creep, though, and I have 5-minute data across two crashes that points at the platform rather than any app or driver. Happy to share the raw files or take a heap dump during the next one.

**Setup**

- C-8 Pro, 2.5.2.139 (latest release)

- ~189 devices, ~42 apps. Integrations: Hue (LAN event stream), Sonos (LAN WebSocket), Dreo (WebSocket), Govee, Ecobee, Levoit, SolarEdge (cloud), AirPlay Integration

- Matter: SwitchBot Hub 3 as a Matter bridge since 10-24; Aqara M3 bridge added 10-28 (after the last crash)

- Logging every 5 minutes from a separate machine: `/hub/advanced/freeOSMemoryHistory`, `freeOSMemory`, `databaseSize`, `internalTempCelsius`, and the Device/App stats JSON

**Crashes (hub local time)**

| Up from | lowMemory reboot | Uptime |

| 10-25 12:39 | 10-27 ~10:47 | ~46 h |

| 10-27 10:52 | 10-28 22:24 | ~35.5 h |

(Two earlier lowMemory reboots on 10-23 and 10-25 came while I was still removing a duplicated app, so I'm leaving them out.)

**Pattern, the same both times**

1. **~30 hours healthy:** CPU 5-min avg ~0.5, Total Java steady at ~200–216 MB, used heap sawtooth with a floor of ~140 MB, Free OS dropping only 1–2 MB/hr.

2. **Then a 5–6 hour runaway:**

- CPU 5-min avg climbs to 1.2–2.0

- Used heap peaks grow from ~200 to ~340 MB, and the floor after GC creeps from ~140 to ~170 MB

- Total Java grows step by step to 369.9 MB

- Free OS falls 20–90 MB/hr

- Then the lowMemory reboot

3. **What doesn't change:** Direct Java stays flat at ~2.8 MB, and database size stays normal (8–24 MB).

Runaway #1 started 10-27 around 04:00–06:00. Runaway #2 started 10-28 around 17:00–18:00. Hourly high points of Free OS for runaway #2:

```

10-28 16h 1095.5 MB Total Java 205.6

10-28 17h 1093.9 MB Total Java 224.9

10-28 18h 1073.5 MB Total Java 258.2

10-28 19h 1036.4 MB Total Java 282.3

10-28 20h 981.8 MB Total Java 369.9

10-28 21h 892.6 MB Total Java 369.9

10-28 22:24 lowMemory reboot

```

**Apps and drivers were idle during the runaway**

The Device/App stats snapshots cover the last 2 hours of runaway #2 (19:29–21:25). Over that time:

- All apps and devices together used **2.5–5% of wall time**, the same as in healthy hours. The top entries were Hue, Govee, SolarEdge and Dreo, at a few seconds per 30 minutes each.

- No app or device showed growing run time or growing state size.

- Scheduled jobs stayed at 27–28 throughout.

So whatever was driving CPU to 1.5–2.0 and filling the heap doesn't show up in Device or App stats. It looks platform-side.

**Two things that line up in time (not proven)**

- **Matter bridge offline:** the SwitchBot Hub 3 bridge stopped reporting at 09:48 on 10-27, in the middle of runaway #1, an hour before that crash. After the reboot it didn't come back on its own. Its driver logged zero executions from the 10-27 boot until I re-subscribed at 21:25 on 10-28, so the bridge was silent through all of runaway #2 as well. If the Matter stack keeps retrying a session or subscription to an unreachable bridge, that work wouldn't show in Device stats.

- **Cloud requests to a deleted app:** the mobile app was sending cloud requests to an app ID that no longer exists ("Received cloud request for App 10 that does not exist", `/mobile//devices` and `/combined`), in bursts from 14:05 to 17:01 on 10-28. Runaway #2 started around 17:00–18:00. I've since re-added the hub in the mobile app.

**Questions**

1. Is the ~370 MB heap ceiling what triggers the lowMemory reboot on the C-8 Pro, rather than free OS memory?

2. Could you share the heap-dump procedure you mentioned above? I'd like to take one when Total Java passes ~230 MB, which is the earliest sign of a runaway in my data.

3. Is there a known issue with the Matter controller and a bridge that becomes unreachable (retry loops, sessions not released)?

I can send the full CSVs (Free OS / CPU / Total, Free and Direct Java every 5 minutes for 10-25 β†’ 10-29) and the stats JSON snapshots, and PM my hub ID.

@gopher.ny follow-up on 2.5.2.129: the lowMemory reboot came on Nov 14 at 02:18, after 40.4 days of uptime, about 3 days later than 2.5.1.174 (37.0 days). It hit 17 seconds after the nightly cloud backup finished, in the same 02:15–02:20 window where the committed heap used to grow. Free OS memory stayed above ~850 MB and CPU was normal to the end.

The first clear slowdowns showed up on Nov 10 (day 37): the hub stalled for ~3 s at a time. A button press took 3.4 s to turn into a command, and Zigbee devices took 3–4 s to confirm commands (both normally ~0.1 s). The daily floor of used heap was ~300 MB then and reached ~310 MB before the reboot (ceiling 370 MB).

I've now installed 2.5.3.123, with the memory-leak fixes, so a new test run started today. I'll report back once there's enough data to compare.