If my scripts were leaking, the memory consumption should be on a steady rise (scripts are called quite freqently, with just a few seconds between each call). It is not:
As you can see, it stays constant for almost two days, then suddenly eats a fairly large chunk of memory again.
And my scripts are extremely simple. Here’s one:
// Converts received MQTT value in argument to a tag called ams_voltage
var number = parseFloat(args[0])
await tag("ams_voltage", number);
return true;
How can that leak any memory? It is just parsing an argument and writing it to a tag. I am not well versed in javascript, but I can’t see how that could leak memory.
