Heap Memory - Performance monitoring for the last 5 hours #825
Replies: 3 comments 3 replies
-
Have you watched it over several days? I ask, as I’ve seen this over a few hours at startup historically, but it generally stabilizes after a bit. I always attributed it to people walking past with BLE devices that scans pick up. |
Beta Was this translation helpful? Give feedback.
-
Hello again, 23 hours since the first gateway (esp32) startup: (From previous report) (The performance now is) 2024-12-28 09:40:21 --> ---- Heap Statistics ---- 2024-12-28 10:06:08 am --> ---- Heap Statistics ---- Any concern ? Will it leak memory over time ? I am concerned that esp will restart with lack of memory available after days. |
Beta Was this translation helpful? Give feedback.
-
Some more logs from the last couple of minutes: 2024-12-28 10:36:37 --> ---- Heap Statistics ---- |
Beta Was this translation helpful? Give feedback.
-
Hello, first of all I would like to share that I am really happy with this library, its is awesome to handle BLE connections with stable performance. I was at the beggining strugglinh with arduino standard BLE library but failing all the time due to the memory leake. Now, things are much better. I can handle 4 BLE connections at time with no issues.
I do have a gateway (esp32 wroom32e) scanning 4 bluetooth devices sensors (servers, esp32 c3), servers advertises for 4 seconds and transmit data to gateway every 25 seconds. Code is pretty much the same presented for nimBLE Client.ino.
I have run a test and I have plotted the serial monitor every scan time, in addition to that adding memory information such as esp_get_free_heap_size() and esp_get_minimum_free_heap_size().
Below it is possible to see memory heap for the last 5 hours. Although heap memory variation is small and it cleary shows (when ploggin every second) a memory recovery when disconnecting and reconnecting devices, I still see it decreasing a litle bit over the hours. Is there any reason to concern about memory leake under this current scenario ? In case i run my device with this below´s performance, will it run out of memory over the weeks or months ?
2024-12-27 10:00 am --> ---- Heap Statistics ----
2024-12-27 10:00 am --> Free Heap: 206068 bytes bytes
2024-12-27 10:00 am --> Minimum Free Heap: 205656 bytes bytes
2024-12-27 1:00 pm --> ---- Heap Statistics ----
2024-12-27 1:00 pm --> Free Heap: 200016 bytes
2024-12-27 1:00 pm --> Minimum Free Heap: 199120 bytes
2024-12-27 2:00 pm --> Free Heap: 199776 bytes
2024-12-27 2:00 pm --> Minimum Free Heap: 199084 bytes
2024-12-27 2:00 pm --> -------------------------
2024-12-27 3:00 pm --> ---- Heap Statistics ----
2024-12-27 3:00 pm --> Free Heap: 200140
2024-12-27 3:00 pm --> Minimum Free Heap: 199084 bytes
2024-12-27 3:00 pm --> ------------------------
2024-12-27 4:00 pm --> ---- Heap Statistics ----
2024-12-27 4:00 pm--> Free Heap: 199672 bytes
2024-12-27 4:00 pm--> Minimum Free Heap: 199084 bytes
2024-12-27 4:00 pm --> -------------------------
Beta Was this translation helpful? Give feedback.
All reactions