Memory Leak Poll

UI Components for JSF
Post Reply
flexvision
Posts: 3
Joined: 18 Aug 2014, 23:28

19 Aug 2014, 15:20

Hello,

My name is Felipe, i'm from Brazil and my english is not so good, so i will try explain my problem but excuse if i miss some words...

So, i have a project and i used the 3.5 Primefaces Version, so i decided to migrate version to 5.0 ... The big problem is that now my pages that contains a poll are with leak memory, i did a simple page to represent this ...

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:sec="http://www.springframework.org/security/facelets/tags">
      
	<f:view contentType="text/html; charset=ISO-8859-1" locale="#{languageController.localeCode}"> 
	
		<h:head>
			
			<script type="text/javascript" src="#{request.contextPath}/fusioncharts/fusioncharts.js" />
			<script type="text/javascript" src="#{request.contextPath}/fusioncharts/themes/fusioncharts.theme.fint.js" />
			
		</h:head>
		
		<h:body>
		
			<h:form>
			
				<p:poll interval="5" process="@this" widgetVar="poll" update="@form" />
				
				<div id="DivMapId" align="center"> 
					FusionCharts.
				</div>
				
				<script type="text/javascript">
		
						
		
						if(getChartFromId("MapBrazil")){
							getChartFromId("MapBrazil").dispose();
						}
	
						FusionCharts.ready(function() {
	
							var instance = new FusionCharts({
	
									"id": "MapBrazil",
									"type": "maps/brazilregion",
									"renderAt": "DivMapId",
									"width": "300",
									"height": "300",
									"dataFormat": "json",
									"dataSource": {}
								
							}).render();
							
						});
				
				</script>
			
			</h:form>
		
		</h:body>
	
	</f:view>
      
</html>
And the profile from Google Chrome...

Image

I use:

JSF 2.0
Primefaces 5.0
Server: Glassfish 3.1.2

Is there any solution? If i pay the Elite Version ( 3.0.5 ) is probaly that i can resolve this problem ?

Thank you !
Felipe

flexvision
Posts: 3
Joined: 18 Aug 2014, 23:28

19 Aug 2014, 19:42

I discovery that if i put a p:selectCheckboxMenu with a f:selectItems inside the form and apply refresh with the poll cause memory leak too.

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

21 Aug 2014, 12:25

flexvision wrote:I discovery that if i put a p:selectCheckboxMenu with a f:selectItems inside the form and apply refresh with the poll cause memory leak too.
Well that is no surprise really. Create an issue about this to get it investigated.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 22 guests