[@All] Mojarra Important Perfomance Problems

UI Components for JSF
tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

13 Mar 2012, 11:05

Image

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

KingdomHeart
Posts: 280
Joined: 25 Jun 2010, 01:18

14 Mar 2012, 03:40

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

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

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

14 Mar 2012, 03:44

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.
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.
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

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

14 Mar 2012, 10:34

KingdomHeart wrote: and that there are quite some works need to be done to make Stateless fast in MyFaces.
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.
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

Aditya
Posts: 163
Joined: 16 Nov 2011, 20:19

18 Aug 2012, 08:45

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
*****
Aditya

Using :
Primefaces 5.0 + Omnifaces 1.7 + Prettyfaces
JSF 2.2.2 -Myfaces
Tomcat 7.0.42

kidvid
Posts: 26
Joined: 10 Jan 2012, 18:45

18 Aug 2012, 18:30

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.

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

18 Aug 2012, 19:43

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

javaone9
Posts: 317
Joined: 06 Nov 2012, 20:50

09 Jan 2013, 01:47

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

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Jan 2013, 01:48

What does stack trace or profiler hint on outofmemory? Haven't you tested your app with a profiler for concurrent users?

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

09 Jan 2013, 01:55

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?
1. did you read this entire conversation?
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

Locked

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Charlestecak, Google [Bot] and 80 guests