How can I increase LWIP memory size for webpage

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How can I increase LWIP memory size for webpage

3,255 次查看
ramazan_kurban3
Contributor III

Hi. I setup a dynamic webserver app on LPC1769.  This webserver use ssi/cgi on one page that shtml.  If this webpage exceed to 5000 byte, it run unstable and freeze on 2-3 refreshes. If ı decrease webpage size under 5000 bytes , it runs perfectly and ı can refresh as i want. I increese defines on lwipopts.h but it doesnt work. How can ı increase this memory for large websize ? 

ı attached my lwipopts.h

标记 (3)
0 项奖励
回复
3 回复数

3,069 次查看
ramazan_kurban3
Contributor III

I increase these parameters but it didnt affect.

0 项奖励
回复

3,069 次查看
soledad
NXP Employee
NXP Employee

Do you think you can tell us, how you try to access the WEB page of the server, maybe the webpage it is correct but the device has to make another task consuming the memory for the heap, and this may affect the webserver or another interrupt.

0 项奖励
回复

3,069 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Ramazan:

I would suggest you check below optioins

/* TCP sender buffer space (bytes). */
#define TCP_SND_BUF             (6*TCP_MSS)


/* TCP receive window. */
#define TCP_WND                 (2*TCP_MSS)

/* MEM_SIZE: the size of the heap memory. If the application will send
a lot of data that needs to be copied, this should be set high. */
#define MEM_SIZE                (22*1024)

Regards

Daniel

0 项奖励
回复