Charts, jqplot and client memory usage

UI Components for JSF
CORSIC
Posts: 50
Joined: 24 Oct 2013, 15:09

21 Jul 2014, 20:38

Hello,
my project is using primefaces charts (4.0.17 and 5.04) and especially stacked barcharts. One of them is drawing 12 series of 40 stacked points each.
The fact is that the navigator uses a huge amount of RAM memory to paint it (near 1 GB), causing a crash of the computer (Firefox + Windows 7) due to the reach of the max RAM available.
Does anyone think it's normal ?

Thanks a lot.

Best regards.
JEE7 / Java 8 / Glassfish 4.1 / Wildfly 11/ Primefaces 6.2.x / Oracle 11G & PostGreSQL 9.x
Vue.js / PrimeVue

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

21 Jul 2014, 21:17

No, this is not normal imo. Does it happen with plain jqplot to? Can you try that?

CORSIC
Posts: 50
Joined: 24 Oct 2013, 15:09

22 Jul 2014, 11:58

Sorry but I' m not used to plain jqplot. I can t do it easyly.
My chart is a p:chart or a p:barchart with a cartesiandatamodel or a barchartmodel (i tried both).
I desactivated the extender too but still can see a huge amount of memory on client side.
JEE7 / Java 8 / Glassfish 4.1 / Wildfly 11/ Primefaces 6.2.x / Oracle 11G & PostGreSQL 9.x
Vue.js / PrimeVue

CORSIC
Posts: 50
Joined: 24 Oct 2013, 15:09

11 Sep 2014, 18:40

we noticed that Firefox 23.0.1 doesn't not make huge memory, but don't have found any solution yet.
JEE7 / Java 8 / Glassfish 4.1 / Wildfly 11/ Primefaces 6.2.x / Oracle 11G & PostGreSQL 9.x
Vue.js / PrimeVue

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

11 Sep 2014, 20:16

What other browsers show this issue?

CORSIC
Posts: 50
Joined: 24 Oct 2013, 15:09

11 Sep 2014, 20:18

IE does the same problem.
JEE7 / Java 8 / Glassfish 4.1 / Wildfly 11/ Primefaces 6.2.x / Oracle 11G & PostGreSQL 9.x
Vue.js / PrimeVue

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

11 Sep 2014, 21:31

IE6? And whatversion(s) of FF? And chrome?

CORSIC
Posts: 50
Joined: 24 Oct 2013, 15:09

12 Sep 2014, 18:28

IE 8 and 9

FF, all versions except 23.0.1. Even last FF version.

We don't use Chrome.
JEE7 / Java 8 / Glassfish 4.1 / Wildfly 11/ Primefaces 6.2.x / Oracle 11G & PostGreSQL 9.x
Vue.js / PrimeVue

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

12 Sep 2014, 18:39

CORSIC wrote:my project is using primefaces charts (4.0.17 and 5.04) and especially stacked barcharts. One of them is drawing 12 series of 40 stacked points each.
The fact is that the navigator uses a huge amount of RAM memory to paint it (near 1 GB), causing a crash of the computer (Firefox + Windows 7) due to the reach of the max RAM available.
Does anyone think it's normal ?
i searched google for

jqplot memory crash

and found a lot of chatter out there on the internet. have you done the same and see if there are recommendations that have been out there (for years)?

are you using ajax=true or ajax=false to update/render charts on your page? if you are doing ajax=true to update/render charts, then what is the typical/normal amount of ajax=true requests to update/render charts, and when does the crash occur? when charts are rendered first time or after multiple ajax=true requests to update/render charts?
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

CORSIC
Posts: 50
Joined: 24 Oct 2013, 15:09

14 Sep 2014, 10:30

i didn't find any solution by internet chatters. The crash occurs at first loading time. We use ajax=true. Memory is freed as soon as we do a ajax false navigation. The way it works seems to be ok, the issue is that the client navigator use 1 GB RAM for it.
Only FF 23.0.1 seems to allocate a very low amount of RAM. Can't understand ...

The component used is a p:chart and the dataModel is a bartchartModel (stacked). Number of series is 12 and number total of points in these series is 400.
JEE7 / Java 8 / Glassfish 4.1 / Wildfly 11/ Primefaces 6.2.x / Oracle 11G & PostGreSQL 9.x
Vue.js / PrimeVue

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 44 guests