Ram usage is quite high !
xeno27 opened this issue · comments
Hi,
I have an Rasperry Pi 4 (8GB ram) and two smartmeter adapter via USB installed (Hichi USB). I installed the smartmeter plugin for IoBroker and see that the ram usage increase more and more. i have to restart the Adapter to fix this.
At the moment every adapter took more than 200Mb of ram !
i have the version 3.2.1
I attach 3 pictures (ram usage, setting of each adapter)
Hm ... I never experienced that. mine just need 70MB per instance.
So we need to find out whats up on your system and why it is that way.
So lets start with logs. is the 30s interval working and always reporing data? Or are ther ein between some intervals that do not do that?
i think there are some intervals there are not reporting data (seen in the log).
should i need to set this interval to an higher number ?
iobroker.2021-08-16.log
Hm ... for me it looks good. each instance has two lines per minute ... thats as it should be for 30s delay (becasue next 30s starts after a mesage was received) ...
Hm ... interssting. Please try to use "10s" data query interval ... (for one instance) ... is ram use lower then?
Strange ... this do not happen on my system. WHich node.js version is used?
Could be a question if an upgrade to nodejs 14 helps ... in fact the adapter handles a lot of data with all the serial stuff and handling, but also all data structures are normally free'd by adapter (at least as I'm aware). SO it is up to the nodejs process/GarbageCollector when he free's up stuff ...
Ok that make Sense, is there an Good Upgrade Guide ? Wich i can Trust ?
A german one in ioBroker forum https://forum.iobroker.net/topic/44566/how-to-node-js-f%C3%BCr-iobroker-richtig-updaten-2021-edition
after updating to NODE.JS: V14.17.5 and I-broker 5.1.23 the ram usage is after one week around 70Mb.
Thanks !
Interesting ... thank you