I have developed a JEE application with primefaces 6 Spring in Wildfly 10.
The application works well with few users, but from 10 users the system starts to give very high response times of more than 10 seconds. With 25 User gives times of 30 seconds
The server has enough resources, it has enough CPU and RAM. The JVM is well configured and has too much memory.
However, there are certain pages that make the render phase of JSF very slow.
The application basically has 3 screens, which are generated with a template and several ui: composition that are created with iu: include.
Could they be generating interblocks between these .xhtml pages that use the same iu: includes, at the time of rendering?
An example of one of the pages is:
<ui:composition 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"
template="/WEB-INF/template_amt/template_amt.xhtml">
<ui:define name="content">
<h:outputScript name="jquery/jquery.js" library="primefaces" target="head"/>
<div class="ui-g-12 ui-md-12 ui-g-nopad" style="height: 55%;" >
<ui:include src="/WEB-INF/template_amt/componentes/tabs.xhtml" />
</div>
<div class="ui-g" style="height: 205px;">
<ui:include src="/WEB-INF/template_amt/componentes/datos.xhtml" />
</div>
<div class="ui-g-12 pie" style="height: 50px;">
<ui:include src="/WEB-INF/template_amt/componentes/botones_abajo.xhtml" />
</div>
</ui:define>
</ui:composition>