[@All] Mojarra Important Perfomance Problems
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
I think this just demostrate the rendering/build view performance. For exmaple, as already said in this post: on postback's, myfaces is much faster.
But as stated in the mailing list, this solution isn't perfect.
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
-
- Posts: 280
- Joined: 25 Jun 2010, 01:18
Also as Thomas point previously, Stateless JSF is now for Mojarra, and that there are quite some works need to be done to make Stateless fast in MyFaces. Here is his link in previous page
http://comments.gmane.org/gmane.comp.ja ... evel/54352
http://comments.gmane.org/gmane.comp.ja ... evel/54352
Mojarra 2.1.10, Glassfish 3.1, Tomcat 7, Primeface 3.3.1
IE 6-8, FireFox 10-13
MAC OSX Lion, Windows XP, 7
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
Thanks for this response. This shows that I can stay with Mojarra, but I did recognize some strange 'AJAX' behavior with my environment (see my signature below) when users are concurrently accessing the app (and/or same data). I'll be doing more of concurrent user testing soon.zoigl wrote:I think this just demostrate the rendering/build view performance. For exmaple, as already said in this post: on postback's, myfaces is much faster.
But as stated in the mailing list, this solution isn't perfect.
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
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
As i understand correclty: The part, which is faster with stateless mode, is already very fast in myfaces. So the improvment in Mojarra is more then with MyFaces.KingdomHeart wrote: and that there are quite some works need to be done to make Stateless fast in 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
If you would like to see Stateless extension getting added to MyFaces, you all can vote for this proposal to add Stateless extension to MyFaces project.
Also, for discussing about the compatibility issues with respect to existing JSF infrastructure when using Stateless extension for Mojarra, I created a new Topic Stateless JSF & Primefaces compatibility
Also, for discussing about the compatibility issues with respect to existing JSF infrastructure when using Stateless extension for Mojarra, I created a new Topic Stateless JSF & Primefaces compatibility
*****
Aditya
Using :
Primefaces 5.0 + Omnifaces 1.7 + Prettyfaces
JSF 2.2.2 -Myfaces
Tomcat 7.0.42
Aditya
Using :
Primefaces 5.0 + Omnifaces 1.7 + Prettyfaces
JSF 2.2.2 -Myfaces
Tomcat 7.0.42
The ticket mentioned in the original thread was closed, but we made a new ticket. It's a real problem, but you need a really large page in order to really demonstrate it, as shown in the example attached to the following Java Server Faces ticket:
http://java.net/jira/browse/JAVASERVERFACES-2494
The problem is the way that Mojarra finds nodes in the DOM after you submit an AJAX request for a partial page update. If you have a very large HTML tree, say 10k nodes, then every time you do an ajax request, it searches through all 10k nodes, very very inefficiently. They really need to restructure their code using hashmap searching, or something equivalent, instead of crawling through the HTML tree structure.
http://java.net/jira/browse/JAVASERVERFACES-2494
The problem is the way that Mojarra finds nodes in the DOM after you submit an AJAX request for a partial page update. If you have a very large HTML tree, say 10k nodes, then every time you do an ajax request, it searches through all 10k nodes, very very inefficiently. They really need to restructure their code using hashmap searching, or something equivalent, instead of crawling through the HTML tree structure.
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
This isn't only JS side. Also processing @ server was/is very slow compared 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
Our JSF app runs out of memory and gets OutOfMemory error quite often when the number of users increases or visited by search engines that starts a new session for every GET. JSF Stateless will solve this memory issue. I VOTE for JSF Stateless feature. Our JSF facelets do not use <c>, all pages are static, can I use the feature with mojarra 2.1.7 now? IF not in Mojarra release, where to download?
Thanks
Dave
Thanks
Dave
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
What does stack trace or profiler hint on outofmemory? Haven't you tested your app with a profiler for concurrent users?
-
- Posts: 6144
- Joined: 10 Sep 2011, 21:10
1. did you read this entire conversation?javaone9 wrote:JSF Stateless will solve this memory issue. I VOTE for JSF Stateless feature. Our JSF facelets do not use <c>, all pages are static, can I use the feature with mojarra 2.1.7 now? IF not in Mojarra release, where to download?
2. from what I remember, someone mentioned that JSF stateless works with Mojarra 2.1.3
3. MyFaces 2.1.7, 2.1.8, 2.1.9, 2.1.10 may resolve this issue
4. search google/stackoverflow.com for number of sessions web.xml
5. when asking question, please provide stacktrace of your exception (as Cagatay/Prime asked for already, above)
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