Hello everyone,
In the project i'm working on, we have an information page, which takes a lot of time to get loaded. The page has more than 3000 lines with dialogs and tabs, and each tab has a datatable. I was loading all of that tables data before the page's rendering. I thought that was the main reason for slow loading and i made them load when a particular tab is selected. But it didnt make the rendering part any faster. Now i think thats because of the page is too big. By any chance can i make it faster other than seperating each tab and dialog into a new page ?
I'm using Primefaces 3.5 with Seam 2.3 and JSF 2.1
Thanks
JSF slow page loading problem
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Whats slow? how much ms?
Try some of my tips:
http://tandraschko.blogspot.de/2012/08/ ... ation.html
http://tandraschko.blogspot.de/2012/09/ ... ation.html
Otherwise your application logic may be slow.
Try some of my tips:
http://tandraschko.blogspot.de/2012/08/ ... ation.html
http://tandraschko.blogspot.de/2012/09/ ... ation.html
Otherwise your application logic may be slow.
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try a profiler to see where the bottleneck is.
It takes approximately 3 seconds to load, but sometimes it can be more than 10 seconds. And for the AS i use JBoss, maybe there can be some configration to make it faster?tandraschko wrote:Whats slow? how much ms?
Otherwise your application logic may be slow.
Thank you so much for your tips, i'll try them
How can i use a profiler? And are 3000 lines too big for a page? I'm really getting suspicious about it.optimus.prime wrote:Try a profiler to see where the bottleneck is.
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
We had a page with ~2000 lines in a ui:repeat and some el and conditions.
I took arround 800ms for rendering (without query) with plain Tomcat and with this tips on my blog.
Without ExtVal ~700ms.
It really depends on your app. First i would try MyFaces and please measure the rendertime with a PhaseListener or Filter and multiple calls (because of warmup).
I took arround 800ms for rendering (without query) with plain Tomcat and with this tips on my blog.
Without ExtVal ~700ms.
It really depends on your app. First i would try MyFaces and please measure the rendertime with a PhaseListener or Filter and multiple calls (because of warmup).
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 73 guests