Hello folks.
Yesterday I made a shocking discovery. The use of JSF Composite Components will slow your application extremely down. We're speaking of a factor of nearly 10, that each Ajax request will last longer.
(No matter if this Ajax request has anything to do with the Composite Components).
I've already created a bug report to the official Java Server Faces JIRA. I would like to ask you to have a look at the bug, download my attached example Project and try it out.
If you get the same results please vote for this bug and inform me in this thread.
http://java.net/jira/browse/JAVASERVERFACES-2256
I think this is a huge Showstoper for every JSF Application. What do you think?
Performance warning! Don't use Composite Components!
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Does this also occur with MyFaces?
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
I also tested MyFaces Core (2.1.4)
There results were a lot better but still the AJAX request took 2 - 3 times longer if I used Composite Components. But please if you are a user of MyFaces feel free to test with my project and post your results.
There results were a lot better but still the AJAX request took 2 - 3 times longer if I used Composite Components. But please if you are a user of MyFaces feel free to test with my project and post your results.
PrimeFaces 3.0, Glassfish 3.1.2, Mojarra 2.1.6,
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
MyFaces usually performs better, try filing issues to myfaces and mojarra as enhancements.
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
Daedalus, i see you are using Mojarra 2.1.3. Are you planning to test composite components with Mojarra 2.1.2?
Here, i've seen other users of composite components, and honestly, this is my first time hearing that there is a performance issue with the use of composite components.
Here, i've seen other users of composite components, and honestly, this is my first time hearing that there is a performance issue with the use of composite components.
Howard
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome
Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I mean we use composite components a lot in our PrimeFaces apps for our clients, noone reported performance problems.
- kwintesencja
- Posts: 316
- Joined: 08 Feb 2010, 20:33
- Location: Brazil
Just comented in the issue...i have tested your example and the page takes 8s to load using composite components vs 1s wih normal components, so i changed the the app project stage to production and the result was far better 1s with composite vs 500ms without it. ive tested with mojarra 2.1.3.
Att,
--
Rafael Mauricio Pestano
Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano
--
Rafael Mauricio Pestano
Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano
-
- Information
-
Who is online
Users browsing this forum: No registered users and 31 guests