marxram / spidr

Privacy for Deye Microinverters using ESP 8266 / 32 module
12 stars 2 forks source link

RAM usage increases until the application stops #18

Open Schrambang opened 1 month ago

Schrambang commented 1 month ago

Hi,

I am also enthusiastic about the idea and overwhelmed by the scope of the program. I use the current, last version from 07.07.2024. My facts:

It seems that the RAM usage increase more during the time data will receive from the inverter (see attached screenshot at 6.00 am).

Screenshot_20240711-171934

Unfortunately, I have not yet been able to find the cause of this. Has anyone been able to observe the same behavior and may have already solved the problem.

Greetings Harald

marxram commented 1 month ago

Hi Herald, actually I had also some of theese issues, which I saw as the graph display somehow just started over.

I then added the HEap Sensor to be able to investigate the issue a little better. Also I was thinking about automatically doing a reboot if free Heap was too little.

--> Only reason I did't do that is because of the Graph display. It would forget all the vealues. => One ide to solve that was to use the flash storage as a ring buffer to store the last 24/48 h of data.

My guessing about the heap consumption is the WebServer. Also I have seen that the WiFi AP often is staying visible, even if it actually should shut down. This might also be one cause...

As I was just looking at my heap consumption, it looks similar tp yours.

Schrambang commented 1 month ago

--> Only reason I did't do that is because of the Graph display. It would forget all the values.

To me it looks like the data is lost anyway. I could also observe the behavior in the binary, but had no explanation at first until I saw the heap. It was a good idea of ​​you to provide this information.