Webserver running out of memory

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

Webserver running out of memory

752 Views
maximilianfenzl
Contributor I

Hi,

I have a problem with my http-server (MQX RTCS) running out of memory. That is what i am tried to do yet:

- I need to open 5 Sockets on the RTCS (2 of them are allways free for the webserver)

- First I created a Website ( html + separate css + separate java script file) then i recognized, that the browser is starting to crawl all linked files to the index.html at the same time. Therefore i ran into a out of memory problem, because the http server is creating a lot of tasks. Then i tried to use only one index.html file and put everything in the header of this file. This worked much better but if there are many refreshes in a short time, i also run into out of memory. 

I don´t care about the webserver running out of memory because there is no problem to restart it (not much data lost), but i need the other sockets to stay alive, so for me there is no possibility to restart the whole rtcs. It is also no problem if i don´t react to some refreshes...

Is there anybody out there, who has a Website with java + .css running and solved this problem? Is there a a setting option for the http-server to limit the creation of tasks?

Tank you so far

Max

Labels (1)
Tags (2)
0 Kudos
3 Replies

372 Views
karelm_
Contributor IV

Hi Max,

which version of the MQX and HTTP server do you use?

Regards,

Karel

0 Kudos

372 Views
maximilianfenzl
Contributor I

Hi Karel,

right now i am using MQX 4.0 and the HTTP server included.

Thanks for your answer

Regards,

Max

0 Kudos

372 Views
karelm_
Contributor IV

Hi Max,

I strongly recommend to wait for release of MQX 4.0.2 and port your application to it. There is new version of HTTP server in 4.0.2 (called HTTPSRV) with new API. Old server is full of bugs and memory leaks and we do not plan to maintain it (it will be removed in MQX 4.1).

Best Regards,

Karel

0 Kudos