How can I increase LWIP memory size for webpage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I increase LWIP memory size for webpage

1,685 Views
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

Tags (3)
0 Kudos
3 Replies

1,499 Views
ramazan_kurban3
Contributor III

I increase these parameters but it didnt affect.

0 Kudos

1,499 Views
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 Kudos

1,499 Views
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 Kudos