Francesco Toro XB wrote:
Hi All,
...
if (request instanceof HttpEntityEnclosingRequest) {
HttpEntity entity = ((HttpEntityEnclosingRequest)
request).getEntity();
byte[] entityContent = EntityUtils.toByteArray(entity);
Francesco
What is the point of buffering the entire request body in memory? This
makes no sense. If request body is 22 MB and the total heap is 200 MB if
may take as few as 5 concurrent requests to cause the process run out
of memory on the heap.
DO NOT buffer incoming requests in memory and the problem will go away.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]