"TCP/IP" task, "httpd server" task run out of memory

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

"TCP/IP" task, "httpd server" task run out of memory

1,984 Views
nikhilsarnaik
Contributor III

Hi guys,

I am running MQX 3.8.1 and the same RTCS stack.

Basically I have multiple tasks initialized using task template (so no dynamic tasks) and a http web server with (HTTPDCFG_DYNAMIC_TASKS    1).

I also have two seperate socket tasks running which are simply listening for incoming socket of different ports.

When I run the code, I am able to connect and communicate to the both sockets simultaneously ... so until here its perfectly fine.

But as soon as I access any of the web pages, The TCP/IP task and httpd server task run out of memory.

Also the web server seems really slow furthermore sometimes it fails to serve the files totally. If the file not served successfully is a javascript (.js) file, then obviously the website does not function properly. Also after this I can access the sockets only one at a time. I have attached some debug snapshots for reference.

Please let me know if anyone else has come across such issue before.

Thanks in advance

Nikhil Sarnaik

PS: Mark have you come across something like this issue before?UK_CF_FAE

Labels (1)
0 Kudos
6 Replies

1,205 Views
Martin_
NXP Employee
NXP Employee

with MQX 4.0.2 a new "httpsrv" application will be introduced. Recommendation is to migrate your web server to httpsrv as soon as it is released. 

1,205 Views
Tim562
Senior Contributor I

Hi Martin,

     I am also interested in the new HTTPD server. I'm developing on the 5125 with MQX 3.8.0 and I believe MQX support for that processor has been stopped at 3.8.1. Any idea if the new server will be useable on 3.8.0 or 3.8.1 MQX? Thanks!

~Tim

0 Kudos

1,205 Views
Martin_
NXP Employee
NXP Employee

Hi Tim,

yes, it will be usable. I migrated the preliminary version of the httpsrv, see the post below:

https://community.freescale.com/message/327912#327912

With just small modifications it will be usable with MQX 3.8.0/3.8.1.

-Martin

0 Kudos

1,205 Views
Tim562
Senior Contributor I

Hi Martin,

     Have you had a chance to test out the http_read() function in the new/prelim http server as it's used to receive a binary file from an http POST command? I'm finding it stops short of receiving all data that was sent (total is around 1MB sent). Reverted back to the original httpd server in MQX 3.8.1.1 and all works again. I do find this new server to provide much better performance then the old one so I would sure love to use it, but this needs to work. Thanks for your posts.

Best,

Tim

0 Kudos

1,205 Views
Martin_
NXP Employee
NXP Employee

Hi Tim,

it works in release version (MQX 4.0.2). I tried, see

https://community.freescale.com/message/344553#344553

it will be out by the end of Aug.

0 Kudos

1,205 Views
nikhilsarnaik
Contributor III

Hello Martin,

Is there any list of expected/known bugs in the current implementation of the http server?

Also is there a timeline as of when the new httpsrv is going to be released?

Will I be able to use the new implementation with MQX 3.8.1 or 4.0.1?

Thanks Nikhil

0 Kudos