Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

improve perfomance of JSF application?  RSS feed

 
Divya Marwaha
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JSF components in web application. The application response is very slow (about 10s) after user makes any selections. i.e. time between page submission and page re-rendering. How can to improve the response time/performance of web app? The backend processing code takes about 2s and remaining time is taken up by GUI code.
[ February 09, 2008: Message edited by: Bear Bibeault ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I find that if you flap your arms really really fast, like they were wings, that a JSF app will run faster. Try it and report back. ;)

There are many reasons why an app might run slow, and the best way to do performance improvements is to find the biggest bang for your buck. However, it is an art, and you also have to have the right tools. So find a profiler somewhere or add your own logging to your code to find out where it is really slow.

Also, we have no idea what your code looks like. I have never heard of the UI in JSF code (internal JSF code) taking so long, so there is something else that is slowing it down. Is there 10,000 UI components on the page, with all of them having custom converters, and the server that is serving the pages is only given 10 kb or memory to run. We don't know what you have to be able to pinpoint exactly where you are having problems.

Please give us as much information as possible to maybe be able to help.

Good Luck

Mark
 
Divya Marwaha
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mark,

Thanks for your prompt and detailed reply. I will use profiling tool to get more information. If you have any suggestion on the best profiling tool to use, it will be helpful.

The page in question contains a table displaying some tests and their status.The page also contains some buttons and drop-down menus. The columns of the table displaying the test results need to be updated every 20 seconds or so for effective monitoring of tests. The page size is about 80KB. There is some amount of Java Script(JS) embedded in the page (about 100-150 lines) as well.

Caching feature was added to speed up table data retrieval.

Some things I wanted to ask.
1. In web.xml, currently client side-state save is specified as it is an external applicaiton. I read that client-side state saving uses higher bandwidth. Can that be causing slowness. Are there any good rules of thumb that specify when to store the state on the client or the server?

2. Will the performance improve if http is used for some pages, instead of https? Current framework uses https for all JSP pages.



Thanks again in advance!
Divya
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!