# High memory usage on HP2023 compared to HP2019

**URL:** <https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [July 7, 2023, 7:11pm UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167 "2023-07-07T19:11:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marius\_Stensrod](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marius_stensrod/32/56540_2.png) [@Marius\_Stensrod](https://community.homey.app/u/Marius_Stensrod)\
**Post date:** [July 7, 2023, 7:11pm UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/1 "2023-07-07T19:11:22Z")

</div>

I know that it is several posts about memory usage, but i do not find many regarding the HP2023.

I have several apps, and the free memory percentage on HP2019 was larger than it is on HP2023, now i hower around 19-20% free, sometimes lower. HP2019 was about 35% free. The HP2023 is recovered from a HP2019 backup.

Is there anyone else that is experiencing high memory usage on the HP2023, compared to the HP2019?

Is there someone who is not experiencing high memory usage on the HP2023?

Do anyone know, if it is the Beta status that is causing the high memory usage? I see that Homey itself uses a lot of memory, but some of the apps increases in memory usage as the time goes by. I have to restart the Homey every second day, to “clear” the memory usage to prevent apps from not running. (10% free limit)

I have 80 (give or take) units Zigbee/Z-wave/Wifi/BLE, 15+ virtual units and about 30 advanced flows, some large and some small.

Regards  
Marius

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [July 7, 2023, 9:23pm UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/2 "2023-07-07T21:23:07Z")

</div>

> [@Marius\_Stensrod](#):
>
> anyone else that is experiencing high memory

it’s normal and it was even worse 2 months ago. As it’s beta, some optimization could be still expected but unless your Homey is not crashing, there isn’t anything wrong with it.

---

<div class="post-metadata">

**Author:** ![Inunekko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/inunekko/32/13815_2.png) [@Inunekko](https://community.homey.app/u/Inunekko)\
**Post date:** [September 19, 2023, 11:49am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/3 "2023-09-19T11:49:34Z")

</div>

Same here, it builds up within a few days:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f945178b53c45f1610202e6e80116117048dad11.png)

After a restart:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7a7d096273eedef3652458a1b7ae9d270e613049.png)

---

<div class="post-metadata">

**Author:** ![Anton](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anton/32/10134_2.png) [@Anton](https://community.homey.app/u/Anton)\
**Post date:** [September 21, 2023, 5:49am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/4 "2023-09-21T05:49:59Z")

</div>

![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/21c25191cb53964917352d1771aba6a1aebd0b8b.png)

Just turn off the beacon app for a while and see what happens to your memory.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 21, 2023, 6:10am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/5 "2023-09-21T06:10:53Z")

</div>

Your Homey is consistently using more RAM after you turned it off? 🤔

---

<div class="post-metadata">

**Author:** ![Anton](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anton/32/10134_2.png) [@Anton](https://community.homey.app/u/Anton)\
**Post date:** [September 21, 2023, 6:54am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/6 "2023-09-21T06:54:58Z")

</div>

via google translate:  
When I turn on the beacon app, the free memory drops drastically within a few days. (it then hangs around 200Mb) Every few days I had to restart Homey to have more than enough free memory available again. Athom is aware of this.

Als ik de beacon app aanzet gaat de vrije geheugen binnen een paar dagen drastisch naar beneden. (blijft dan hangen zo rond de 200Mb) Om de paar dagen moest ik Homey opnieuw opstarten om weer ruim voldoende vrij geheugen beschikbaar te hebben. Athom is hiervan op de hoogte.

> [@Geheugen van Homey 2023 loopt vol](https://community.homey.app/t/geheugen-van-homey-2023-loopt-vol/83828/15):
>
> Als ik de [Beacon](https://homey.app/nl-nl/app/com.koktail.beacon/Beacon/) app uitzet blijft het geheugen keurig netjes stabiel. Bericht van Athom: Het probleem is al eerder gerapporteerd door andere gebruikers en Development is al hard aan het werk om een oplossing voor het probleem te vinden. Ik kan helaas geen uitsluitsel bieden als het gaat om wanneer dit issue wordt gevonden en opgelost, maar weet dat het in de juiste handen is en het alle aandacht krijgt die het verdient. Dit is een issue met bluetooth. Je kan je bluetooth appar…

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 21, 2023, 7:01am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/7 "2023-09-21T07:01:45Z")

</div>

Ah sorry, I see now your graph is showing _free_ memory, I thought it was showing _used_ memory 🥴

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [September 21, 2023, 8:09am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/8 "2023-09-21T08:09:17Z")

</div>

Is there a limit on free memory when HP23 starts to allocate the swap? Around 400-450MB free?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 21, 2023, 8:46am UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/9 "2023-09-21T08:46:38Z")

</div>

Swap is statically allocated (at boot time), and Linux always uses swap.

---

<div class="post-metadata">

**Author:** ![To\_Lou](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/to_lou/32/79159_2.png) [@To\_Lou](https://community.homey.app/u/To_Lou)\
**Post date:** [September 21, 2023, 1:29pm UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/10 "2023-09-21T13:29:05Z")

</div>

Allocate maybe is the wrong word. I mean when it will start swapping memory to drive storage?  
(I know the swap file already is defined/allocated)

Perhaps below 300MB free you can expect the swapfile to be used?

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/89d46a0c7d1fa40939b9cdef0c979c06d1322a6c.jpeg) ](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/89d46a0c7d1fa40939b9cdef0c979c06d1322a6c.jpeg)

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [September 21, 2023, 3:08pm UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/11 "2023-09-21T15:08:42Z")

</div>

> [@To\_Lou](#):
>
> I mean when it will start swapping memory to drive storage?

Perhaps my answer wasn’t clear, but what I meant is that when swap is available, Linux will use it. It doesn’t work based on free RAM, it’s a continuous process where the OS decides to swap out unused memory pages to increase I/O performance, for instance.

So all you can hope for is that Athom has configured Homey’s OS so its swapping behaviour matches the hardware.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [September 21, 2023, 5:28pm UTC](https://community.homey.app/t/high-memory-usage-on-hp2023-compared-to-hp2019/84167/12 "2023-09-21T17:28:04Z")

</div>

> [@robertklep](#):
>
> So all you can hope for is that Athom has configured Homey’s OS so its swapping behaviour matches the hardware.

They did, eg. sysctl , swapines etc… but the problem with swapping is still another sort of problem (I do believe). Btw with ZRAM I was quite successfully achieving the same prior to upgrading RAM.
