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:
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. ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With