JSF slow page loading problem

UI Components for JSF
Post Reply
ynscn
Posts: 2
Joined: 12 Apr 2013, 15:58

12 Apr 2013, 16:25

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

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

12 Apr 2013, 16:34

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

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

12 Apr 2013, 16:45

Try a profiler to see where the bottleneck is.

ynscn
Posts: 2
Joined: 12 Apr 2013, 15:58

12 Apr 2013, 17:03

tandraschko wrote:Whats slow? how much ms?

Otherwise your application logic may be slow.
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?

Thank you so much for your tips, i'll try them
optimus.prime wrote:Try a profiler to see where the bottleneck is.
How can i use a profiler? And are 3000 lines too big for a page? I'm really getting suspicious about it.

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

12 Apr 2013, 20:29

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 73 guests