AnsweredAssumed Answered

K60 webserver ram usage

Question asked by Lee Penn on Feb 25, 2014
Latest reply on Feb 27, 2014 by Carlos_Musich


I am having issues with the webserver and ram usage on the K60 with MQX 4.0.2.2 . My other tasks are using 54k of my ram and I am using the minimum footprint settings. When I enable the webserver it increases the size to 85k, until I serve up a web page then it sometimes increases to max size and can randomly not show parts of the webpage. I tried using the new HTTPSRV_init(&params); command but was running into memory issues when it created the tasks, so I rolled back to using httpd_server_init_af. I have tried decreasing stack size of the webserver_task as it shows it is using only 29% but that causes the tcp/ip task to get an out of memory error. I have also noted that the other task httpd_server task is also using under 50 percent but any changes I make also cause out of memory or out of blocks errors.

 

I am wondering if there is anyway other way to limit the ram usage of the webserver without causing intermittent web page displays?

Outcomes