I have an application which displays several grids of data (on the same screen) build upon JSF 2.0 and EJB, run on JBoss 7.1.
Each grid is refreshed every 2.5 seconds using <a4j:poll> tag from RichFaces 4.2. After page loads everything works fine. However, after several minutes performace of the application decreases drastically. I mean the application reacts slower and slower to actions, which trigger JSF ajax request to the server. This happens no matter the browser (however, in Chrome it chokes later than in others). I wonder where the problem might lie: in the browser, in the JSF implementation or in the application itself?
I have an application which displays several grids of data (on the same screen)
Share
OK, I have found the reason for such behaviour. It was caused by JSF’s AJAX request queue. The poll requests were processed long enough to overlap other polls next requests. As a result pending AJAX reqests were stacked in the queue and therefore blocked next requests – and so on. I solved this problem with using one massive request to refresh everything that needs to be refreshed.
Anyway – thanks for suggestions and your time.