<div dir="ltr">I&#39;m using v2.2.7 to present a web page that uses XMLHttpRequest to poll for json formatted status data every 5 seconds.  This is on a small embedded system with 1GB of memory.  Originally I used the jQuery getJSON method but the process consumed all of the available memory in a few days.<div><br></div><div>I was able reduce the amount of accumulation by using a raw XMLHttpRequest object and reusing the same object for each request.  The requests are serialized using setTimeout so reuse isn&#39;t an problem.</div><div><br></div><div>Currently, the memory use levels off after about 120 hours, RSS hovers at about 100MB.  Is there a way for me to lower this peak amount?  Is there a way to force garbage collection?</div><div><br></div><div>I&#39;m using setTimeout to serialize the requests.  I&#39;ve verified that the actual request causes the accumulation, if I use the setTimeout loop without making the request the memory usage is flat, and if I make the requests but not touch the response I see the increase in usage.</div><div><br></div><div>Any other suggestions?  I&#39;d like to try v2.5.4 but my build seems to hang at a link step with libSVG, 2.2.7 is the most recent version that easily builds for me.  I&#39;m still looking into that.</div><div><br></div><div>Thanks.</div><div>Eddie<br clear="all"><div><br></div>-- <br>Eddie McCreary<br><a href="http://www.heorot.org" target="_blank">http://www.heorot.org</a><br>Outside of a dog, a book is a man&#39;s best friend.  Inside of a dog, it&#39;s too dark  to read. -Groucho Marx
</div></div>