google / google-visualization-issues

288 stars 35 forks source link

Memory Leak in OrgChart #436

Open orwant opened 9 years ago

orwant commented 9 years ago
It's been reported to me that we see an apparent memory leak in OrgChart.

I've seen several issues reporting memory leaks prior to this and also noted an Aug
11 2010 release saying memory leaks on redraw had been addressed.  However, even with
that, we're seeing this issue today Oct 18 2010.

This is on a page which redraws the Org Chart every 60 seconds.  It was reported that
when the site was left open in the browser over the the night it ate up over 1 gig
of memory.

I was able to easily reproduce this by leaving it open in a tab for a few hours

Results:

17,672 K  9:40 AM
29,312 K 10:19 AM
36,356 K 10:39 AM
56,212 K 11:44 AM
111,644 K 12:39 PM

Details:

- Reported on in Win XP Pro V 2002 SP 3 / IE 8.0.6001.18702
- Test results from Win XP Pro V 2002 SP 3 / Chrome 6.0.472.63

What steps will reproduce the problem? Please provide a link to a
demonstration page if at all possible, or attach code.
1. Draw an orgchart
2. Redraw (or even just reload) the orgchart several times
3. Watch the memory usage

I'll try to get an example up at http://www.virtualrevolution.net/zbin/gviz/test.html.
 Currently I'm getting rid of all the dependencies unnecessary for the demonstration.

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
Org Chart

Are you using the test environment (version 1.1)?
(If you are not sure, answer NO)
NO

What operating system and browser are you using?
Win XP Pro V 2002 SP 3 / Chrome 6.0.472.63
Win XP Pro V 2002 SP 3 / IE 8.0.6001.18702

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by virtualrevolution on 2010-10-18 17:39:06

orwant commented 9 years ago
Please note that I got an example up and that my example refreshes more often than it
is intended to.  Rest assured the actual site does not do this.  I introduced this
issue when copying the relevant portions to a test page.  However, I do not wish to
spend any time debugging my example.

Original issue reported on code.google.com by virtualrevolution on 2010-10-18 19:05:59

orwant commented 9 years ago
I have also got the same issue with memory leaks. I am trying to redraw the charts repeatedly
after fixed intervals and the Task Manager reports continuous increase in memory usage.
Please help me in this problem!!!

Original issue reported on code.google.com by nishu9601 on 2011-06-22 07:32:49