Project

General

Profile

Bug #2604

Memory leak?

Added by Erik Andersson about 4 years ago. Updated about 4 years ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
2013-09-20
Due date:
% Done:

50%


Description

Hi

I am using the function from: http://forums.pentaho.com/showthread.php?141359-Avoiding-full-redraw-during-chart-update

function d() {
    this.lifecycle = { silent: true };
    this.render = function(values) {
        if (arguments.length > 0) {
            this.chart.setData(values,{
                crosstabMode: this.crosstabMode,
                seriesInRows: this.seriesInRows
            });
        }
        this.chart.render(true, true, true);
    };
    this.update = function() {
        var myself = this;
        if (Modernizr != undefined && Modernizr.svg) {
            this.renderChart();
        } else {
            pv.listenForPageLoad(function() {
                myself.renderChart();
            });
        }
    };
    var myself = this;
    setTimeout(function(){myself.update();},1000);
}

We have some serious memory issues with this function as shown in the attached image:

I discussed this briefly with Duarte Leao in the irc-chat and he wanted me to file a ticket. Hopefully it is not a browser issue and something that can be fixed. The charts are updated really smooth and nice with this function.

memory_usage_screenshot.jpg (412 KB) Erik Andersson, 2013-09-20 10:10 AM

History

#1 Updated by Duarte Cunha Leão about 4 years ago

  • Assignee set to Duarte Cunha Leão

Hi Eric,

thanks for filing the issue.

This looks like regular GC behavior, when under continuous pressure, as is the case of periodic re-render.
However, we'll try to investigate if the high memory usages are in fact "required", or can be somehow reduced.

#2 Updated by Erik Andersson about 4 years ago

Ok, thanks!

#3 Updated by Duarte Cunha Leão about 4 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Also available in: Atom PDF