ESP8266 Developer Zone The Official ESP8266 Forum 2016-01-04T21:20:17+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1572 2016-01-04T21:20:17+08:00 2016-01-04T21:20:17+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1572&p=5235#p5235 <![CDATA[Re: Heap Size]]> 1. Check if during handling POST request there is explicit memory allocation(os_malloc, os_zalloc) in your web server code and make sure you free them respectively (before return, break ...)
2. Check for probable out of bound memory access (causes subsequent SKD memory management inconsistent)
especially check temp size (it's large as packet length)
3. Check for use of global variables (receive callbacks can be called concurrently and may cause race conditions)
4. Read notes and warning about using SDK APIs available in the documentation.
5. Finally use more verbose debugging info in you code so that you can localize and isolate the code section that causes memory leak.

Statistics: Posted by SaeedKazemi — Mon Jan 04, 2016 9:20 pm


]]>
2016-01-04T14:14:29+08:00 2016-01-04T14:14:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1572&p=5228#p5228 <![CDATA[Re: Heap Size]]>
Basically i am running a web server... after each POST operation HEAP size is reducing .... at some point it is getting too low and
application not working...
how we can maintain the HEAP memory...

I am attaching the log please check it....
Heap Size.png

Statistics: Posted by vishnu046 — Mon Jan 04, 2016 2:14 pm


]]>
2016-01-03T19:01:37+08:00 2016-01-03T19:01:37+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1572&p=5217#p5217 <![CDATA[Re: Heap Size]]> However you may monitor the free memory using system_get_free_heap_size()

Statistics: Posted by SaeedKazemi — Sun Jan 03, 2016 7:01 pm


]]>
2016-01-02T14:04:11+08:00 2016-01-02T14:04:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1572&p=5211#p5211 <![CDATA[Heap Size]]>
I am developing application on ESP8266. i am getting this error "No heap available, failed to malloc 1592".

I would like to know that after TCP Sent is memory allocated free or not..?

Statistics: Posted by vishnu046 — Sat Jan 02, 2016 2:04 pm


]]>