Open RohdeSchwarz-SDC opened 1 month ago
I'm not an OpenWebBeans user but as far as I can see on their github repository you should use OpenWebBeans 4.0.2
How big is your webapp?
How big is your webapp?
It's a good question. How many XHTML files are there? Biggest bottleneck is in the ServletRegistration#addMapping()
and the performance is servletcontainer impl dependent.
OWB has got nothing to do with this. Under the covers ServletContext#getResourcePaths()
and ServletRegistration#addMapping()
are being used which are part of the Servlet API.
How big is your webapp?
It contains ~ 100 *.xhtml
files, but only ~5 are "toplevel" files, the rest are <ui:composition>
to be included via <ui:include>
.
I tried to rename those ~95 to *.xhtml.composition
but it did not improve the procession performance of PostConstruct/PreDestroy
annotations.
My impression is that com.sun.faces.spi.InjectionProviderFactory.createInstance
scans the webapp's classpath twice for bean annotations like @Named
?
Problem
As soon as I enable the feature
jakarta.faces.AUTOMATIC_EXTENSIONLESS_MAPPING
the webserver starts really slowly! \ Maybe there is something you (or we) could do?Setup
Logs
AUTOMATIC_EXTENSIONLESS_MAPPING = false
AUTOMATIC_EXTENSIONLESS_MAPPING = true