Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAM usage increases until the application stops #18

Open
Schrambang opened this issue Jul 11, 2024 · 2 comments
Open

RAM usage increases until the application stops #18

Schrambang opened this issue Jul 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Schrambang
Copy link

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:

  • SW: 1.1_health
  • Commit: 501c17d
  • Board: HELTEC-OLED-128x64-WiFiKitV3
  • I adding boards to Arduino as requested.
  • I installed ESP32 from board manager.
  • I installed the needed libraries
    * PubSubClient in Version 2.8 by Nick O'Leary
    * U8g2 in Version 2.34.22 by oliver
    * Time in Version 1.6.1 by Paul Stoffregen
    * RTClib in Version 2.1.1 by Adafruit tried wit this version and with the update 2.1.4 same result
    * Adafruit_BusIO in Version 1.14.4 by Adafruit tried wit this version and with the update 1.16.1 same result
    * Preferences by Volodymyr Shymanskyy Version 2.1.0

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
Copy link
Owner

marxram commented Jul 12, 2024

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.

@marxram marxram added the enhancement New feature or request label Jul 12, 2024
@Schrambang
Copy link
Author

--> 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants