+ Start a Discussion
chennachenna 

Governor Limits

Can i know what this error indicates. I may hitting governor limits here.

 

Maximum view state size limit (135KB) exceeded. Actual view state size for this page was 138.797KB 

 

System.LimitException: Apex heap size too large: 3000253 

SeAlVaSeAlVa

Your View State stores the information that you keep in your controller as properties. This information is kept as an <input hidden, and from that is where this limit comes from

 

 

Try reducing the amount of unused fields, setting some of them to volatile (in order no to be stored), etc.

 

Regards.

hisrinuhisrinu

You can enable the "Show View State in Development Mode" checkbox under your user settings and review the view state size. This will give you better understanding for improving the page view state

 

http://www.salesforce.com/us/developer/docs/pages/Content/pages_tools_edit_toolbar.htm

 

 

chennachenna

I  already enabled  development mode.But you are sure that i am not touching any governor limits right?

 

I mean his error is no regarding governor limt.

hisrinuhisrinu

This is also a kind of governor limit, where in you will not able to view this page if you can't reduce the view state.

 

So you need to reduce the view state by using Transient and clearing the view state which is not required