AnsweredAssumed Answered

RTCS http server conusming all RAM memory

Question asked by Jesper Evertsson on Dec 17, 2015
Latest reply on Jun 22, 2016 by Jesper Evertsson

Hi, we've been ahving some problems with our hppt server running out of memory for a while. I've found a bunch of threads with the same problem in this forum, but the suggestions made there doesn't seem to work. So far I've tried to increase the _RTCSPCB, _RTCS_msgpool and RTCS_socket parameters according to other answers and that has done very little. I've also reduced the stack usage of all of our tasks and this has helped some in that it takes longer to run out of RAM, but we still run out of RAM eventually. My most resent change was to reduce HTTPSRV_SESSION_STACK_SIZE from 3000 to 1500 but that didn't seem to have any effect.

 

Right now when we start the application the RAM usage is about 54K out of 120K available. If I open a web browser and connect to our products http server the RAM usage instantly rises to 66K. If I click around on our different web pages the ram usage is unaffected. But if I press F5 to refresh the page a few times with about 1 second interval the RAM usage rises to 80K. If I keep on pressing F5 on the web page eventually the RAM usage will reach 120K and the tcp/ip task will report out of memory error. To me it seems unreasonable that the http server should occupy more than half of our total RAM size of 128K.

Outcomes