# Mqtt\_input service high memory usage

**URL:** <https://community.openenergymonitor.org/t/mqtt-input-service-high-memory-usage/6911>\
**Category:** emonPi\
**Tags:** mqtt, phpmqtt\
**Created:** [19 March 2018 13:55 UTC](https://community.openenergymonitor.org/t/mqtt-input-service-high-memory-usage/6911 "2018-03-19T13:55:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [21 March 2018 11:05 UTC](https://community.openenergymonitor.org/t/mqtt-input-service-high-memory-usage/6911/3 "2018-03-21T11:05:22Z")

</div>

> [@Emonpi low-write 9.8.25 - inputs stopped working](https://community.openenergymonitor.org/t/emonpi-low-write-9-8-25-inputs-stopped-working/5945/51):
>
> I just noticed an issue on pukka’s install with the mqtt\_input service.
> 
> The RAM usage is steadily increasing.
> 
> As of now, we are at 43.0% [418.4 MB] used by the mqtt\_input service alone.
> 
> I did check and the data is being written to phpfina so I’m unsure as to why the service is still holding it in ram.
> 
> At this rate were creeping toward a crash.
> 
> Any idea how to resolve?

Interesting, I’ve not seen this before. ~~Do you think it’s worth splitting this out into a separate thread since this is another issue to the original issue of this thread?~~ Done.

Could you post output of `$sudo top` to show the memory use of `mqtt_service`?

What happened in the last few days, did the memory use continue to increase? Did the system crash?

Is @Pukka running a stock emonSD setup? Have there been any changes made?

What version of Mosquitto, Redis and Emoncms and Emonhub is @Pukka running

---

_[View the full topic](https://community.openenergymonitor.org/t/mqtt-input-service-high-memory-usage/6911)._
