Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the risks of increasing the "Maximum Output Buffer size"

I'm dealing with a migration from ColdFusion 9 to ColdFusion 11. One issue I've run into is essentially the same as that detailed in this question: cf10 unable to add text to HTML Head

The root cause in my case is a particular page that weighs in at about 3 MB, which is bigger than the output buffer (which is at the default 1024 KB), and is causing CF to flush the cache. This in turn breaks a call to cfhtmlhead in OnRequestEnd().

Redesigning the page is not a practical solution right now. (Maybe in the future.) My problem is "solved" by increasing the "Maximum Output Buffer Size" to 4096 KB.

What are the risks to increasing this value? There are other apps/sites on this server. Could there be memory issues? Performance degradation? (Trying to find a reference for this has been frustrating.)

The ColdFusion 11 Lockdown Guide says:

A lower output buffer size may reduce the memory footprint in some applications.

The server and JVM would seem to have plenty of memory.


Since there seems to be some confusion about which setting:

Settings screen shot

like image 572
Fish Below the Ice Avatar asked Sep 12 '14 15:09

Fish Below the Ice


1 Answers

Increasing the output buffer will simple allow the server to consume more memory per request. Having a cap prevents the template engine from dealing with an unexpected high number of dynamic includes and filling up the server's memory.

It's safe to increase on the same level it's safe to have a single request that outputs 3 MB of data. ;)

like image 100
Alex Avatar answered Oct 06 '22 01:10

Alex