<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MQX Software Solutions中的主题 Re: Memory problems when refreshing web page multiple times</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344796#M11112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the memory consumption, use Chrome. I think that any browser with a preconnect feature will trigger (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Firefox also does&lt;/SPAN&gt;), but Chrome is the worst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the crashes, polling at 50 ms intervals should trigger for any browser (tested with &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Chrome)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If neither of this reproduces, let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 15:39:07 GMT</pubDate>
    <dc:creator>eugeneryabtsev</dc:creator>
    <dc:date>2015-03-06T15:39:07Z</dc:date>
    <item>
      <title>Memory problems when refreshing web page multiple times</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344793#M11109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use FSLMQXOS_4_1_2_Vybrid and a Vybrid board. I start RTCS (...blah-blah-blah... &lt;STRONG&gt;_RTCS_socket_part_max = 8&lt;/STRONG&gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;...blah-blah-blah...&lt;/SPAN&gt;), bind interfaces, do HTTPSRV_init &lt;SPAN style="font-size: 13.3333330154419px;"&gt; (...blah-blah-blah... &lt;/SPAN&gt;&lt;STRONG&gt;max_ses = 8&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;...blah-blah-blah...&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;), open a web page and start hitting "refresh". After some continuing refreshing, the system starts to have &lt;STRONG&gt;all sorts of problems&lt;/STRONG&gt; (ways beyond a simple refusal to continue to serve the pages; a crash beyond the ability to debug it is not uncommon). I see that quite a lot of memory is consumed by TCP sockets that are not quite sockets (see the attachment).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions with regard to this:&lt;/P&gt;&lt;P&gt;1. Is it only me or there are indeed crash-size problems with hitting an out-of-memory memory condition?&lt;/P&gt;&lt;P&gt;2. How to really limit the memory usage of TCP stack?&lt;/P&gt;&lt;P&gt;3. And a final, theoretical, question: do sockets with no data to send and no handle to send it through and in a "Time Wait" condition have to retain their full Rx/Tx Window buffers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 12:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344793#M11109</guid>
      <dc:creator>eugeneryabtsev</dc:creator>
      <dc:date>2015-02-27T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems when refreshing web page multiple times</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344794#M11110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It &lt;EM&gt;seems&lt;/EM&gt;, the crashes were caused by a bug unrelated to out-of-memory issue, so we have two different problems here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To reproduce the crashes:&lt;/P&gt;&lt;P&gt;1. Unpack a fresh FSLMQXOS_4_1_2_Vybrid.exe&lt;/P&gt;&lt;P&gt;2. Open httpsrv_svf522revb_a5.eww&lt;/P&gt;&lt;P&gt;3. Build, start&lt;/P&gt;&lt;P&gt;4. Open the "polling example" page in the browser&lt;/P&gt;&lt;P&gt;5. See how it runs with no problem&lt;/P&gt;&lt;P&gt;6. Make the following change in poll.html: setTimeout("loop()", &lt;SPAN style="text-decoration: line-through;"&gt;1000&lt;/SPAN&gt; &lt;STRONG&gt;50&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;7. Run mktfs.bat, build, start&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;8. Open the "polling example" page in the browser (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;refresh the frame to insure it's not cached one-second version&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;9. Observe an MQX_UNHANDLED_INTERRUPT in TCP/IP task error code or the crash&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;(might be related to &lt;A _jive_internal="true" href="https://community.nxp.com/message/375541#375541"&gt;this&lt;/A&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 09:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344794#M11110</guid>
      <dc:creator>eugeneryabtsev</dc:creator>
      <dc:date>2015-03-02T09:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems when refreshing web page multiple times</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344795#M11111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me reproduce the problem.&lt;/P&gt;&lt;P&gt;Which web browser are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 15:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344795#M11111</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-03-06T15:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems when refreshing web page multiple times</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344796#M11112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the memory consumption, use Chrome. I think that any browser with a preconnect feature will trigger (&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Firefox also does&lt;/SPAN&gt;), but Chrome is the worst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the crashes, polling at 50 ms intervals should trigger for any browser (tested with &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Chrome)&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If neither of this reproduces, let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 15:39:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344796#M11112</guid>
      <dc:creator>eugeneryabtsev</dc:creator>
      <dc:date>2015-03-06T15:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems when refreshing web page multiple times</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344797#M11113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing similar problem, and it's related to the TCPIP event list corruption. In my case the unhandled interrupt was hard fault interrupt and from context stored on the stack it had occured in timer.c in TCPIP_Event_* functions. Unfortunately I haven't traced it down where corruption occurs yet.&lt;/P&gt;&lt;P&gt;Maybe it points you to the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 11:52:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344797#M11113</guid>
      <dc:creator>PetrK</dc:creator>
      <dc:date>2015-03-25T11:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Memory problems when refreshing web page multiple times</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344798#M11114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I rather fixed it FOR MY DEBUG PURPOSES by making the following changes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In httpsrv_ses_close:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;shutdown(session-&amp;gt;sock, FLAG_CLOSE_TX);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;_time_delay(100);&lt;/P&gt;&lt;P&gt;shutdown(session-&amp;gt;sock, FLAG_ABORT_CONNECTION);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In TCP_Send_reset:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;mqx_htons(seg-&amp;gt;flags,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RST | ( (sizeof(TCP_HEADER)&amp;gt;&amp;gt;2) &amp;lt;&amp;lt; DATAOFS_SHIFT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;mqx_htons(seg-&amp;gt;flags,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACK | FIN | ( (sizeof(TCP_HEADER)&amp;gt;&amp;gt;2) &amp;lt;&amp;lt; DATAOFS_SHIFT ));&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt; text-decoration: line-through;"&gt;mqx_htonl(seg-&amp;gt;ack,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;mqx_htonl(seg-&amp;gt;ack,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcb-&amp;gt;rcvnxt);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;This is all sorts of ugly and incorrect, but at least makes httpsrv work without crashing the system so I can do the UI and am not stuck. If Freescale does not fix this by about mid-summer, I will have to dig deeper into whatever they did there to fix at least the crash. Would you believe if I say I don't want to?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 12:26:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Memory-problems-when-refreshing-web-page-multiple-times/m-p/344798#M11114</guid>
      <dc:creator>eugeneryabtsev</dc:creator>
      <dc:date>2015-03-25T12:26:05Z</dc:date>
    </item>
  </channel>
</rss>

