Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF View State Size  RSS feed

Gary Braswell
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - I would covet the input from any JSF experts vis-a-vis a problem that I have production application.

We've built a JSF application (JSF 1.1, Sun RI) using STATE_SAVING_METHOD=server, and with com.sun.faces.numberOfLogicalViews=1.

The size of the view state in the session for a relatively simple result set page is 500KB. The HTML being returned is 90KB. The actual data in the result set is 50KB.

It is reasonable to expect the view state being stored on the server to be an order of magnitude greater than the data it encapsulates? If not, are there common mistakes in JSF application code that could cause the view state size to swell?

Also - does anyone have an algorithm or heuristic that you could use to best-guess what the view state size would be in terms of the # of JSF components or some other easily measured value?

Finally - does anyone have experience where they upgraded from JSF 1.1 to JSF 1.2, and they saw the size of the view state decrease? Is there any documented evidence that JSF 1.2 manages memory better than the previous version?

Thanks in advance for any help you can give.

Best Regards,
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!