Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak when frequently updating line graph #44

Open
GoogleCodeExporter opened this issue Jun 4, 2015 · 2 comments
Open

Memory leak when frequently updating line graph #44

GoogleCodeExporter opened this issue Jun 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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.

Original issue reported on code.google.com by [email protected] on 15 May 2015 at 3:20

@GoogleCodeExporter
Copy link
Author

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?

Original comment by [email protected] on 16 May 2015 at 4:03

@GoogleCodeExporter
Copy link
Author

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: [email protected] | 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.*

Original comment by [email protected] on 26 May 2015 at 6:55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant