-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Free Memory decreased by HTTP API requests #2216
Comments
Thanks for reporting. We'll try and reproduce it. Can you send your Support Info please so we can see what hardware, memory etc is being used. Did you notice the same behaviour with v3.6.5? |
There's a benchmark load test I wrote a while back at https://github.com/emsesp/EMS-ESP32/blob/dev/scripts/run_memory_test.py . I'm not sure it works with the latest 3.7.0, so probably needs updating. I don't know how 'techie' you are, but it'll help if you could try and reproduce this using a script (maybe with curl or a Python equivalent) and help trace where it's breaking. Or look into advancing that script above. |
The frequent requests I do with my Gira Homeserver. How can I trace the issue? Currently I can only see the discrease of free memory every 3-10 seconds. |
I don't think it's the api call. I have ioBroker adapter running with >50000 api reads the last day with no effect to memory. |
Yes, but currently I use Modbus. |
I improved the memory load tests (in my fork) and ran it for 1hr calling boiler info, and saw no decrease in memory. I'll close this. If the issue is with Modbus (which doesn't use the API) then please create a new issue. |
You have still 38 API calls and 2 API fails. Could it be another API call, or a API fail that have the memory leak. |
Now with active HTTP API requests. Video.mov |
Does this setting mean that you always cut the connection before all data are received (3382 bytes)? |
Yes but without this setting I have same behaviour. This was just a try to solve the problem without success. |
Oh, just tested, if i use the v2 style command i can reproduce a memory leak. |
Please check 3.7.1-dev.9 from here https://github.com/MichaelDvP/EMS-ESP32/releases/tag/latest |
great find @MichaelDvP - I was only testing v3 style. and thanks @semmel3k for reporting this, you found a bug. |
Great work guys! I think we can close this issue 👍 |
DESCRIPTION
With frequent HTTP API requests every minute (for example with "/api?device=boiler&cmd=info") , the free memory continuously decreases until the module freezes after 45 minutes.
No other services active (MODBUS off; MQTT off, etc.). This occured with latest 3.7.0. and 3.7.1. developer version with ESP32-S3.
TO REPRODUCE
frequent HTTP API requests
EXPECTED BEHAVIOUR
That the free memory not decreases and no freeze
The text was updated successfully, but these errors were encountered: