Skip to content

Conversation

@jamezp
Copy link
Member

@jamezp jamezp commented Nov 12, 2025

Introduces chunked writing for entity output streams to prevent large DirectByteBuffer allocations when writing large POST request entities to temporary files. The default buffer size of 8KB prevents the NIO layer from allocating large thread-local buffers that can exhaust off-heap memory with small MaxDirectMemorySize settings.

https://issues.redhat.com/browse/RESTEASY-3670

Upstream #4735

Introduces chunked writing for entity output streams to prevent large
DirectByteBuffer allocations when writing large POST request entities
to temporary files. The default buffer size of 8KB prevents the NIO
layer from allocating large thread-local buffers that can exhaust
off-heap memory with small MaxDirectMemorySize settings.

https://issues.redhat.com/browse/RESTEASY-3670
Signed-off-by: James R. Perkins <jperkins@ibm.com>
@jamezp jamezp merged commit f6e8e80 into resteasy:6.2 Nov 14, 2025
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant