Skip to content

Not enough HEAP on idf for sending http Requests #14081

Answered by projectgus
ds-digid asked this question in ESP32
Discussion options

You must be logged in to vote

The 106640 bytes come mainly from the imports at startup. Micropython seems not very efficient there. Some parts take an incredible amount of Heap memory. For example: importing the datetime library (previously installed via mip) takes ~20kB of heap memory. (I need this library because micropython builtin time module lacks compatibility with unix timestamps) After all imports from all submodules in my system (With very often calls of gc.collect() to reduce memory consumption):

Right, thanks for the extra info. There's a few things you can do here, depending on how deep you want to go. It seems like your current setup almost has enough RAM, so with luck you don't need to change much to g…

Replies: 12 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ds-digid
Comment options

@projectgus
Comment options

Answer selected by ds-digid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ESP32
Labels
4 participants
Converted from issue

This discussion was converted from issue #13797 on March 13, 2024 03:05.