# Reduce the number of Node.js modules to use less memory

**URL:** <https://community.homey.app/t/reduce-the-number-of-node-js-modules-to-use-less-memory/69038>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [September 18, 2022, 7:21am UTC](https://community.homey.app/t/reduce-the-number-of-node-js-modules-to-use-less-memory/69038 "2022-09-18T07:21:29Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [September 18, 2022, 10:50pm UTC](https://community.homey.app/t/reduce-the-number-of-node-js-modules-to-use-less-memory/69038/6 "2022-09-18T22:50:02Z")

</div>

> [@Busta999](#):
>
> maybe I just have the Hue App restart every 12-24 hrs?

You can do something like this, to auto restart apps when they exceed a certain level of memory usage.  
I used this app [Device Capabilities](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) (Sorry, you’ll need an extra app if you haven’t got this one already)

 ![Screenshot from 2022-09-19 00-47-25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/e/0e61cd43fc488e88972a5cda6b52a1f548bb0e4c.png)

Homeyscript can grow in memory usage when I fire too many scripts in a certain time. Homey becomes unreachable at those times.  
While I have no critical scripts, just restarting the app at those moments works perfect for me.

(BTW, funny how Athom suggests to remove other apps than Hue, while Hue app acts odd and needs some TLC 😉 )

---

_[View the full topic](https://community.homey.app/t/reduce-the-number-of-node-js-modules-to-use-less-memory/69038)._
