SDK是1.1.1的
1、SSL连接前打印heap的信息:
before connect, available heap size:26200
2、SSL连接成功后,打印的heap的信息:
client handshake start.
client handshake ok!
connected, available heap size:7280
测试SSL长连接,ssl占用的堆的大小为17k到20k,导致其他应用malloc失败程序挂掉。而且占用内存大小,与证书大小有很大关系,是否证书一直缓存在堆中,导致内存占用过高,能否在连接成功后,将证书占用的堆free掉。
谢谢解答!
SSL长连接后一直大量占用堆区,导致其他应用malloc失败,程序挂掉。
Re: SSL长连接后一直大量占用堆区,导致其他应用malloc失败,程序挂掉。
Postby ESP_Faye » Tue Jul 07, 2015 3:38 pm
您好,
是的,SSL 会占用较多内存。
附件基于 SDK_v1.1.1 ,根据您的需求,在证书使用后将其释放,麻烦更新使用。
感谢您对 乐鑫 和 ESP8266 的关注 !
是的,SSL 会占用较多内存。
附件基于 SDK_v1.1.1 ,根据您的需求,在证书使用后将其释放,麻烦更新使用。
感谢您对 乐鑫 和 ESP8266 的关注 !
- Attachments
-
- libssl.zip
- (123.69 KiB) Downloaded 657 times
Who is online
Users browsing this forum: No registered users and 95 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.