FAQ
overflow

Great Answers to
Questions About Everything

QUESTION

I've a Visualforce page that holds a large amount of data.

I've used apex:page="readonly" to avoid the viewstate limit of 135 KB. However, I use a lot of data binding that makes the viewstate heavy.

I've recently hit a new limit "Response Size of 15 MB". I believe this is the response size I get from page onload i the process of "Apex ->HTML conversion".

Any suggestion on how to proceed will help. I'm trying to reduce the binding but still looking if there are other options available which I'm not aware of.

Visualforce Error

{ asked by Vignesh }

ANSWER

This error relates to the size of the HTML being produced by your Visualforce page and transmitted to the client browser. It is documented here.

The maximum response size from a Visualforce page request must be below 15 MB.

Reducing the bindings in your page will not improve this, unless it is reducing the HTML content your page is outputting. Though its always good to keep bindings simple when doing repeated output.

This is by no means an exhaustive list, there are a few other options to be considered around the types of those above, it kind of depends on what design goals are for the page you're outputting. Hope this helps!

{ answered by Andrew Fawcett }
Tweet