Assorted memory usage problems with Firefox + Google Charts

91 views
Skip to first unread message

Joseph Hall

unread,
Sep 15, 2015, 2:50:49 AM9/15/15
to Google Visualization API
At the moment, if I leave

https://developers.google.com/chart/interactive/docs/gallery/linechart

open in Firefox (40.0.3/Win8/64) for a few hours, it begins to consume surprisingly large amounts of memory. It goes from ~50MB to 500+MB as shown by about:memory ...

In addition, creating a large linechart (example attached) and reloading it leaks large quantities of memory.

I really have no idea where THAT problem is although offhand it seems like reloading a page shouldn't be leaking memory.

I don't think these issues are necessarily related. The first case, the page grows to a very large size. The second case, Firefox reports increasingly large amounts of uncommitted memory.

Bug filed with Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1204445

Cheers,

  -j

output.html

Daniel LaLiberte

unread,
Sep 15, 2015, 8:29:10 AM9/15/15
to Google Visualization API
Joseph,

We've fixed several memory leaks for the next release, which we will start pushing out within a week. 

The memory leaks shouldn't survive a page reload, however, so what you are seeing in Firefox sounds like a problem with Firefox.  The chart-related memory that is leaking within the page is attached to the window/document, which should be detached when you reload the page, and thus it should be garbage that can be collected.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/80d77119-7775-4882-8e33-07ee3ff606cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA
Reply all
Reply to author
Forward
0 new messages