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

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 requested a review from a team as a code owner November 12, 2025 22:04
@jamezp jamezp merged commit 8d4b1b7 into resteasy:main Nov 14, 2025
13 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