"Maximum view state size limit (135KB) exceeded" error message
|Knowledge Article Number||000002955|
Learn why you're getting the error message, "Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 157.109KB " when try to upload a document.
Salesforce allows Visualforce pages to have a maximum view state size of 135KB.
The View State tab shows you which elements on your page are taking up that space.
A smaller view state size generally means quicker load times.
In order to avoid this error, minimize your pages' view state. You can optimize your Apex controller code and remove any superfluous Visualforce components used.
For more information regarding the View State read page 21 of the developer guide.