Domanda

I'm using JSF 2.0 ,primefaces 3.3 and javax.faces-2.1.4.jar. i facing performance issues specially a memory overhead in renderresponse phase. even signle ajax request consumes lot of memory.

i'm maintening around 3000 components(panels , tabs, tables... etc) in the view tree and i'm trying to process and render only one panel which has only one text field. but it consumes more memory(around 20MB) for rendering. why is this starge behaviour happening ?

Can any one suggest to overcome this.

Thanks in advance !!!

È stato utile?

Soluzione 2

Event during the Partial Request complete JSF view tree traversal happens.

The Solution, which solved my issue is Reduce the number components in the View(Create multiple views with limited components), Add Dialogs to the corresponding view(Add dynamically), Removing unwanted tab sources/Components from the view tree.

Altri suggerimenti

You could use partial submits and partial updates if you are not already using them anyway ;)
Process what you really need to be processed in the ajax request and then update what u really need to be updated by the ajax response.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top