**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.