Memory leak?

233 views
Skip to first unread message

Simon Platten

unread,
Jan 8, 2014, 1:03:33 PM1/8/14
to flo...@googlegroups.com
I'm pushing data using node.js to the client and updating a time series plot.  The graph is limited to the number of points it can show, I remove data from the beginning of the array when it reaches the limit I'm imposed.

When monitoring system resources I see the memory usage steadily increasing, I'm not sure if this is an issue with Firefox or the graphs, I will experiment with other browsers and report back.

Simon Platten

unread,
Jan 8, 2014, 1:05:38 PM1/8/14
to flo...@googlegroups.com
Its worse in Opera.

Simon Platten

unread,
Jan 8, 2014, 1:07:18 PM1/8/14
to flo...@googlegroups.com
In Chrome, the graphs don't even render...which is probably something I've done, however I have it working in Firefox, Opera, IE and Safari.


On Wednesday, 8 January 2014 18:03:33 UTC, Simon Platten wrote:

Simon Platten

unread,
Jan 8, 2014, 1:09:14 PM1/8/14
to flo...@googlegroups.com
It could be an issue with the way the foreignobject tag is implemented, as in Safari, like Chrome, the graphs won't render.


On Wednesday, 8 January 2014 18:03:33 UTC, Simon Platten wrote:

Simon Platten

unread,
Jan 11, 2014, 12:40:31 PM1/11/14
to flo...@googlegroups.com
Hi Carl,

To test this, set-up a time series plot that gets data 50 samples to plot every 2 seconds, then leave it plotting for a while, the memory should steadily ramp up.  I used firefox, just leaving 4 graphs running for a hour ramped up to over a 1GB of memory.




On Wednesday, 8 January 2014 18:03:33 UTC, Simon Platten wrote:

Simon Platten

unread,
Jan 12, 2014, 7:56:15 AM1/12/14
to flo...@googlegroups.com
Hi Carl,

This is a real problem, can't leave a browser up for more than  2 hours without it crashing as it quickly runs out of memory.  Any suggestions on what tools I could use to try and find this leak?

Thank you,
Simon



On Wednesday, 8 January 2014 18:03:33 UTC, Simon Platten wrote:

Carl Sutherland

unread,
Jan 13, 2014, 1:16:06 PM1/13/14
to Simon Platten, flotr2
Chrome dev tools has some has some good CPU and memory profiling capabilities.  I'd start there.

-Carl


--
You received this message because you are subscribed to the Google Groups "flotr2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flotr2+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages