JavaServer Faces performance concerns addressed

I’m back in JSF land recently, and today I found Eelco Klaver’s slides on JSF performance.  Anyone considering JSF should read the slides.  They provide a clear and succinct analysis of why there is a very serious out-of-the-box performance issue with JSF, and what to do about it.  This issue is not widely documented, so I thought I’d add one more link a really good description and solution.

The problem is this: out of the box JSF keeps way too much data around in the session.  On the last project where I used JSF, before my colleagues and I realized this, the 10 – 50 Mb sessions that JSF creates were really clobbering our server.  And although Eelco Klaver recommends setting com.sun.faces.numberOfViewsInSession to a value 5, we found things worked just fine with a value of 1. Our site was very light on forms – your milage may vary.

Finally, just for good measure, here is some documentation on all of these JSF options.

Sharing:
  • email
  • RSS
  • Twitter
  • LinkedIn
  • Facebook
  • Google Bookmarks

4 Comments

  1. valle says:

    Hi, we are a developtment team just planning to begin to develop our firs JSF application. That is why we are very interested in reading Eelco Klaver’s slides on JSF performance, but when we have tried to download the .pdf, we have finded out the document is no longer in the server. Do you know if there is any other site where we could access and download this .pdf? We would really apreciate your help as we can’t seem to find any other relevant information on this critical issue.

    Thanks in advance

  2. Hi Valle,

    I’m afraid I didn’t keep a copy myself, and as you probably found out, it doesn’t seem to be googleable anymore.

    The answer was long so I just put it in a new post – http://www.upayasoftware.com/2009/07/01/javaserver-faces-performance-some-specifics/.

    Good luck, and let me know if I can be of more assistance.

  3. valle says:

    Hi, Andrew,

    Thanks a lot for your help, we have already read your interesting post. But I thought Mr. Kavler recomended to set the com.sun.faces.numberOfViewsInSession value to 5, instead of 3? Anyway, we can see how important it is to keep this param value as low as possible.

    Once again, thanks for your help, you’ve been of great assistance and saved us a lot of headaches :D !!

  4. [...] year I posted about some helpful advice I found on JSF performance.  Sadly, those slides are no longer available.  So I’m putting the details that I remember [...]

Leave a Reply