Issue 44 in elycharts: Memory leak when frequently updating line graph

23 views
Skip to first unread message

elyc...@googlecode.com

unread,
May 15, 2015, 11:20:46 AM5/15/15
to elyc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 44 by molly.ba...@tridsys.com: Memory leak when frequently
updating line graph
https://code.google.com/p/elycharts/issues/detail?id=44

Running ELYCHARTS v2.1.5 on a Windows 7 OS

Starting with the line graph that is used as an example on the webpage, I
made little modification except to have a fill underneath one of three
lines.

I update the graph and call $("#chart").chart('clear'); and then issue the
drawChart command every .5 seconds to have the webpage update with current
values of the data.

The lines each have 10 points. Two of the lines maintain constant values
for their data to show "thresholds." I am really only concerned with
updating the data for the third line.

When I run this program, it appears to have a bit of a problem hogging the
processor and the values from the graph lag behind the values that are sent
to the webpage, and it becomes very slow after about 11-12 minutes. The
page is very slow then and will eventually become entirely unresponsive.

Any thoughts on what I can do to release memory or somehow more gracefully
produce a graph that changes as time passes?

Thank you.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

elyc...@googlecode.com

unread,
May 16, 2015, 12:03:15 PM5/16/15
to elyc...@googlegroups.com

Comment #1 on issue 44 by b...@voidlabs.it: Memory leak when frequently
Are you experiencing the same issue with every browser?
(Firefox/Chrome/IE/Safari)

Can you create a jsbin/jsfiddle to reproduce the issue?

Have you tried to call chart without "clearing" every time?

elyc...@googlecode.com

unread,
May 26, 2015, 2:55:52 PM5/26/15
to elyc...@googlegroups.com

Comment #2 on issue 44 by molly.ba...@tridsys.com: Memory leak when
I removed the reference to tooltips and it seems to be running faster.

When I tried to call chart without "clearing" every time, it went much,
much slower.

I do not know that tooltips solved my problem, but at least I am not having
the problem anymore. If it happens again and I have more details, I will
update.

--
Molly Osterried | Trident Systems Incorporated
Senior Software Engineer, Integrated Systems Engineering Group
10201 Fairfax Boulevard | Suite 300 | Fairfax, VA 22030
voice: 703.267.2310 | fax: 703.273.6608
email: molly.o...@tridsys.com | www.tridsys.com
*Notice: The information contained in this email message is considered
confidential and proprietary to the sender and is intended solely for
review and use by the named recipient. Any unauthorized review, use or
distribution is strictly prohibited. If you have received this message in
error, please advise the sender by reply email and delete the message.*
Reply all
Reply to author
Forward
0 new messages