Hi,
Im working with primeface 3.1, when I update a <p:barChart/> from ajax event on <p:selctOneRadio/> , the browser (IE8, Chrome or Mozilla 10) memory increse about 100MB per request, it seams like it doesnt clear the javascript memory on the browser and saves all data needed to build the chart, it is posible to check this problem at the primefaces showcase http://www.primefaces.org/showcase/ui/liveChart.jsf or http://www.primefaces.org/showcase-labs ... eChart.jsf, in this case browser memory is increased about 4MB after each ajax poll request in the windows task manager.
Deploying on Glassfish 3.1.1.
Think, anyone reported this bug before...
Thanks
jqPlot browser memory leak on chart update
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
I think it's only related to jqplot.
Cagatay, is it possible to use: this.plot.destroy() before creating the new plot after ajax update?
Cagatay, is it possible to use: this.plot.destroy() before creating the new plot after ajax update?
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
I could create an patch and try if this.plot.destroy() after ajax update would work but i have not time, sorry. Maybe you should check the charts.js and widget architecture yourself and createn patch + issue if you fixed it.
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I fixed it by calling destroy() when a chart widget is updated;
Issue: http://code.google.com/p/primefaces/iss ... il?id=4183
Commit: http://code.google.com/p/primefaces/sou ... ail?r=7586
I've tested without the fix, memory started with 150mb, jumped to 500mb after 5 minutes.
With the fix, it stays pretty much the same.
Thanks everyone for the feedback.
Issue: http://code.google.com/p/primefaces/iss ... il?id=4183
Commit: http://code.google.com/p/primefaces/sou ... ail?r=7586
I've tested without the fix, memory started with 150mb, jumped to 500mb after 5 minutes.
With the fix, it stays pretty much the same.
Thanks everyone for the feedback.
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Cool, thanks!
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
I must have another memory leak on my dashboard page because the memory usage just keeps climbing and all the page has is a barchart, multiple panelGrid's which have outputText, a couple of graphicImage's with a p:poll that refreshes the page every 5 seconds.
Edit: I decided to retest after clearing Firefox and its cache and now it seems like the memory usage isnt going up anymore. Thanks!
Edit: I decided to retest after clearing Firefox and its cache and now it seems like the memory usage isnt going up anymore. Thanks!
I'm facing the same problem as described here. Using primefaces 3.4.2 plus myfaces 2.1.10.
In my page I have dashboard with several panels each displaying chart (used extender also) live updated using p:poll component every 2-5 seconds.
I guess that it some other problem as mention earlier fix should be already in this primefaces release.
Any ideas or suggestions what should I check?
Thanks in advance...
In my page I have dashboard with several panels each displaying chart (used extender also) live updated using p:poll component every 2-5 seconds.
I guess that it some other problem as mention earlier fix should be already in this primefaces release.
Any ideas or suggestions what should I check?
Thanks in advance...
Primefaces 5.1
Tomcat 7.0.50
Tomcat 7.0.50
-
- Information
-
Who is online
Users browsing this forum: No registered users and 44 guests