Search code examples
extjsmemory-leakschartsextjs3

ExtJS 3.* chart uses too much memory


I am using Ext JS line chart with over 5000+ data. It uses too much memory especially on IE. How can I fix this leak or why it causes?


Solution

  • Both displaying 5k+ data points and processing it on client side are bad design decisions and should be avoided. Nobody can possibly comprehend this much data in one chart; that should be 10-12 points max or it becomes meaningless white noise. Client side processing in JavaScript is expensive, especially in older IEs; not only that, but you're also wasting time and resources transferring the data that is not going to be used.

    The best solution is to modify your server side method to filter or aggregate data and provide UI access to these features.