I was getting following exception while using Web Client.
org.springframework.core.io.buffer.DataBufferLimitException: Exceeded limit on max bytes to buffer : 262144
which indicated that codec limit has to be increased via MaxInMemorySize property.
I wanted to understand if MaxInMemorySize is set to X, does that mean for every request our application puts aside X amount of memory for buffering upfront or that the memory is assigned dynamically as per the response size of each request.