# Investigation into high system resource usage

**URL:** <https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963>\
**Category:** Configuration\
**Created:** [June 5, 2024, 6:48pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963 "2024-06-05T18:48:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 5, 2024, 6:48pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/1 "2024-06-05T18:48:05Z")

</div>

Good evening,

I could use a little help because Gladys has really been acting up since the OS on which Docker is installed was upgraded:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/6/1/616db532a9446fe5586431408b3e42ae66e12774.png)

As a result, pretty much everything is saturated: disk I/O, CPU, RAM… The Gladys interface is, of course, responding very slowly and I can no longer access the integrations…

In short, help 😅

Have a good evening,  
Jean

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 5, 2024, 7:01pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/2 "2024-06-05T19:01:13Z")

</div>

Hi @jean_bruder 🙂

Do you have more data to be sure it’s Gladys that’s acting up?

Do you have anything else on this machine? What hardware are you running on?

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 5, 2024, 7:30pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/3 "2024-06-05T19:30:05Z")

</div>

Good evening @pierre-gilles 🙂

The hardware hasn’t changed ([PINE A64-LTS - PINE64](https://pine64.org/devices/pine_a64-lts/)), and has been working perfectly since I started using Gladys. Docker runs a few other containers whose overall load is very modest.

The test performed was simple: start one container after another. And it’s Gladys that suddenly causes the machine to crash…

Sorry if I’m repeating myself, but the only change made is an OS upgrade (Armbian from Bullseye to Bookworm).

How can I provide more information in order to determine the cause of this strange behavior?

Thanks,  
Jean

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 5, 2024, 7:36pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/4 "2024-06-05T19:36:56Z")

</div>

Ok, and how many devices do you have? Lots of cameras? Lots of scenes?

Gladys itself doesn’t use anything at idle, it all depends on what you run on it! If you have lots of cameras and you’re reading 5 video streams in parallel, then it’s normal for it to struggle 😃 Especially on such lightweight hardware.

You can also check Gladys’ logs to maybe understand what’s going on (`docker logs gladys`)

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 5, 2024, 7:46pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/5 "2024-06-05T19:46:47Z")

</div>

> how many devices

25 Zigbee devices (now that we can use them 😍) and 5 Tasmota.

> Many cameras

None in Gladys.

> Many scenes

Only about twenty

> look at Gladys logs

They contain quite a few anomalies related to missing devices :

> 2024-06-05T21:34:43+0200 index.js:16 (process.) NotFoundError: DeviceFeature tasmota:Tasmota05:POWER not found  
> at DeviceManager.newStateEvent (/src/server/lib/device/device.newStateEvent.js:17:11)  
> at EventEmitter.emit (node:events:517:28)  
> at Event.emit (/src/server/lib/event/index.js:18:16)  
> 2024-06-05T21:34:43+0200 index.js:15 (process.) unhandledRejection catched: Promise {  
> NotFoundError: DeviceFeature tasmota:Tasmota03:POWER not found  
> at DeviceManager.newStateEvent (/src/server/lib/device/device.newStateEvent.js:17:11)  
> at EventEmitter.emit (node:events:517:28)  
> at Event.emit (/src/server/lib/event/index.js:18:16)  
> }  
> 2024-06-05T21:34:43+0200 index.js:16 (process.) NotFoundError: DeviceFeature tasmota:Tasmota03:POWER not found  
> at DeviceManager.newStateEvent (/src/server/lib/device/device.newStateEvent.js:17:11)  
> at EventEmitter.emit (node:events:517:28)  
> at Event.emit (/src/server/lib/event/index.js:18:16)  
> 2024-06-05T21:34:43+0200 index.js:15 (process.) unhandledRejection catched: Promise {  
> NotFoundError: DeviceFeature tasmota:Tasmota01:POWER not found  
> at DeviceManager.newStateEvent (/src/server/lib/device/device.newStateEvent.js:17:11)  
> at EventEmitter.emit (node:events:517:28)  
> at Event.emit (/src/server/lib/event/index.js:18:16)  
> }  
> 2024-06-05T21:34:43+0200 index.js:16 (process.) NotFoundError: DeviceFeature tasmota:Tasmota01:POWER not found  
> at DeviceManager.newStateEvent (/src/server/lib/device/device.newStateEvent.js:17:11)  
> at EventEmitter.emit (node:events:517:28)  
> at Event.emit (/src/server/lib/event/index.js:18:16)  
> 2024-06-05T21:34:44+0200 handleMqttMessage.js:113 (Zigbee2mqttManager.handleMqttMessage) Zigbee2mqtt device zb\_pir\_entree not configured in Gladys.  
> 2024-06-05T21:34:44+0200 handleMqttMessage.js:113 (Zigbee2mqttManager.handleMqttMessage) Zigbee2mqtt device zb\_pir\_salle-a-manger not configured in Gladys.

Is that a lead?

Thanks,  
Jean

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 5, 2024, 7:50pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/6 "2024-06-05T19:50:44Z")

</div>

> [@jean\_bruder](#):
>
> Is that a lead?

I don’t think so.

On the «&nbsp;Systems&nbsp;» tab → «&nbsp;Tasks&nbsp;», do you see anything?

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 5, 2024, 8:11pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/7 "2024-06-05T20:11:02Z")

</div>

> On the «&nbsp;Systems&nbsp;» tab → «&nbsp;Tasks&nbsp;»

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/c/2/c26634f2028d28f8574184af4b51a2024ec8e59f.png)

Well, I just recreated the container «&nbsp;gladys-z2m-mqtt&nbsp;», setting the version to «&nbsp;latest&nbsp;» (2.0.18) and restarted the whole thing …

![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/1/d1e4b895ab0a47d12164e65b823cface0683790a.png)

Result: Gladys is working normally again …

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/3/3/33c02085030fc5ff2429a89fe28fa74b56e7466a.png)

It started working on its own as we say around here … So I think the problem wasn’t related to Gladys, but rather to something on the MQTT/ZB side 🤨

However, I’m no longer receiving any data from the temperature/humidity sensors:

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/e/a/ea8574675a5810dd7268219a8c0617e04f4389bd.png)

Any idea? 😛

Thanks,  
Jean

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 5, 2024, 8:20pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/8 "2024-06-05T20:20:51Z")

</div>

Some data is starting to come through…

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/d/e/de0d68ac073dbe8944a0d8e7b1d06d0bf4c26a03.png)

Let’s be patient 🙂

In any case, thank you once again @pierre-gilles for your availability!

Have a good evening,  
Jean

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 5, 2024, 9:36pm UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/9 "2024-06-05T21:36:15Z")

</div>

Should we be worried about the size of the database?

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/3X/b/b/bb53b4b2f2e03ad3791a3f0b8a6e67077e35ac91.png)

Jean

---

<div class="post-metadata">

**Author:** ![Terdious](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/terdious/32/6316_2.png) [@Terdious](https://community.gladysassistant.com/u/Terdious)\
**Post date:** [June 6, 2024, 5:32am UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/10 "2024-06-06T05:32:29Z")

</div>

Hi @jean_bruder,

It all depends on how much space you want to give it ^^  
For info, mine is 32GB and runs on a nice little mini PC recommended by @pierre-gilles, and so far no particular lag issues. The only problem is removing a feature or a device because deleting the state history becomes very problematic. But the upcoming arrival of DuckDB may solve this… we’ll see

---

<div class="post-metadata">

**Author:** ![jean\_bruder](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jean_bruder/32/13_2.png) [@jean\_bruder](https://community.gladysassistant.com/u/jean_bruder)\
**Post date:** [June 6, 2024, 7:38am UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/11 "2024-06-06T07:38:57Z")

</div>

Hello @Terdious 🙂

I’m going to migrate Gladys this weekend to another platform ([ROCK64 - PINE64](https://pine64.org/devices/rock64/)) that I will dedicate to Gladys, and see how it all works. In the meantime, Gladys is on holiday, and that’s really when you see how handy this thing is in daily life! Anyway, wait’n see 😉

Have a nice day,  
Jean

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 6, 2024, 7:45am UTC](https://community.gladysassistant.com/t/investigation-usage-ressources-systemes-elevees/8963/12 "2024-06-06T07:45:37Z")

</div>

> [@jean\_bruder](#):
>
> Let’s be patient 🙂
> 
> In any case, thanks once again @pierre-gilles for your availability!

Great, glad you resolved your issue!

> [@jean\_bruder](#):
>
> I’m going to migrate Gladys this weekend to another platform

@jean_bruder Have you already bought your hardware?

The best option is really mini-PCs to seriously get started with Gladys.

For me, the most important thing if you want an instance that runs long-term is a fast drive (SSD required), and a quality CPU.
