High memory consumption

23 views
Skip to first unread message

Renato Covarrubias Romero

unread,
Jul 13, 2010, 11:19:44 PM7/13/10
to Google Visualization API
Hello everyone,

I have some graphics to be automatically updated from time to time.
These are built with the API in JavaScript.

In [1] you can see the HTML where the graphics are. In [2] you find the
Javascript code that reads the data from an external CGI and generates
the graphics with the API. In [3] there is an example of the output of CGI.

The problem is that as they are auto-updated graphics, the browser
starts to consume a large amount of memory, which is released only when
closing the browser (Firefox) or when closing the tab (Google Chrome).

As you can see in [2] I explicitly delete almost everything I can, but
with the automatic update, the memory consumption is excessive.

Can you help me with my problem?

[1] http://pastebin.com/8AW6wpar
[2] http://pastebin.com/iqfGRQTu
[3] http://pastebin.com/NxxbZdVD

--
Renato Covarrubias Romero counter.li.org #399677
renatux [at] gmail.com http://rnt.cl

Viz Kid

unread,
Jul 14, 2010, 2:20:40 AM7/14/10
to google-visua...@googlegroups.com

Hi.

It seems that you are using the older version of line chart (package 'linechart') instead of the new version (package 'corechart').
I'm not sure that switching to the new version will solve your problem, but if it exists in the new package as well, we will have a look at it there.

Let us know how it goes.

  Viz Kid


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.


Renato Covarrubias Romero

unread,
Jul 15, 2010, 10:25:38 AM7/15/10
to google-visua...@googlegroups.com
On 14/07/10 02:20, Viz Kid wrote:
>
> Hi.
>
> It seems that you are using the older version of line chart (package
> 'linechart') instead of the new version (package 'corechart').
> I'm not sure that switching to the new version will solve your problem,
> but if it exists in the new package as well, we will have a look at it
> there.
>
> Let us know how it goes.

Viz,
Thanks for your answer.

I test changing the package migrating the code follow [4], and with
'corechart' the browser start to consume 4 times more memory.

The result .js is in [5].

I hope you can help me. Otherwise I must use Flash graphics. :(

Thanks!

[4] http://bit.ly/aYOQKh
[5] http://pastebin.com/xSW5jdHq

Massimo

unread,
Jul 16, 2010, 2:55:12 AM7/16/10
to Google Visualization API
Hi,

as I described here I have the same problem
http://groups.google.com/group/google-visualization-api/browse_thread/thread/f16a8601ae404ab5

corechart consume a lot of memory, to avoid it I am using annotated
timeline but I would prefer to don't use flash.

Cheers,

Massimo

On Jul 15, 4:25 pm, Renato Covarrubias Romero <rena...@gmail.com>
wrote:

Viz Kid

unread,
Jul 19, 2010, 4:01:11 AM7/19/10
to google-visua...@googlegroups.com

Hi.

It seems that indeed there is some memory issue when redrawing the chart many times. We will look into it but I cannot give you any estimation on when this will be resolved.

Sorry,
  Viz Kid

Renato Covarrubias Romero

unread,
Jul 19, 2010, 1:31:21 PM7/19/10
to google-visua...@googlegroups.com
On 19/07/10 04:01, Viz Kid wrote:
>
> Hi.
>
> It seems that indeed there is some memory issue when redrawing the chart
> many times. We will look into it but I cannot give you any estimation on
> when this will be resolved.

Ok.
Thanks a lot Viz.

Count on me if you need to test something.

Massimo

unread,
Jul 19, 2010, 5:43:56 PM7/19/10
to Google Visualization API
Hi Viz,

thanks for consideration.

I'm available for testing as well, I want to push this instead of
flash.

Cheers,

Massimo

On Jul 19, 7:31 pm, Renato Covarrubias Romero <rena...@gmail.com>
wrote:

Student

unread,
Jul 20, 2010, 4:36:35 PM7/20/10
to Google Visualization API
My experience is that
When I reach dataset with more than 2000 values .... the scattered
chart in corechart package is very slow on Crome browser.
As i have already launched project which uses this package for one
of the clients, May I know the approx time when this problem will get
resolved?
I also wanted to know whether google viz are going to make a new
package instead of corechart to remove existing problem?
regards,
Akku

On Jul 19, 5:43 pm, Massimo <massim...@gmail.com> wrote:
> Hi Viz,
>
> thanks for consideration.
>
> I'm available for testing as well, I want to push this instead of
> flash.
>
> Cheers,
>
> Massimo
>
> On Jul 19, 7:31 pm, Renato Covarrubias Romero <rena...@gmail.com>
> wrote:
>
>
>
> > On 19/07/10 04:01, Viz Kid wrote:
>
> > > Hi.
>
> > > It seems that indeed there is somememoryissue when redrawing the chart

Viz Kid

unread,
Jul 20, 2010, 5:25:03 PM7/20/10
to google-visua...@googlegroups.com

Hi

We are looking into the problem stated earlier in this discussion and we will update about the progress in the the release notes of new versions.
I'm not sure how this is related to slow scatter chart on Chrome as the discussion here was high memory consumption when redrawing the same chart many times. Also, I did not follow the relation to adding a new package - we do not intend to change the name of the package corechart.

Best,
  Viz Kid

akshay dange

unread,
Jul 20, 2010, 7:49:15 PM7/20/10
to google-visua...@googlegroups.com
Hi Viz Kid,
Thanks for ur reply
--
regards,
Akku
Reply all
Reply to author
Forward
0 new messages