Heap memory usage growing

Hi,

I have a telegraf instance running collecting metrics from various plcs using mqtt as the primary method of collecting from the broker.

I also have the telegraf moniotiring plug in running on influx becuase occasionaly the telegraf just stops and from the monitoring I noticed the heap memory usage is just growing and gorwing overtime, its not at 1.5 gig and growing daily. I think this is the reason for the dropouts which take a couple of months to occur. Should I just perform a weekly restart or is this some other way to remove the memory heap usage? I am not exactly sure this is ths reason why telegraf stops but its the only thing I hav eto go on.

If you could share your config and version of telegraf so we know what plugins are in use it would help.