eclipse-ee4j / eclipse-ee4j/jersey

Issue warning when using jdk HttpUrlConnector

Open
#3,990 1 comment 0 reactions 0 assignees View on GitHub
Component: connectors
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

Dear all,

when HttpUrlConnector is used (which is the default), large files will cause a OutOfMemoryError despite using streams.
I dug around and found this issue to be the cause: https://github.com/eclipse-ee4j/jersey/issues/2296

Summary: Because of failing tests and no one filing a bug against openjdk, chunked (default) is deactivated and replaced by "buffered" when using `HttpUrlConnector`.
Well, I tried to upload some large files and got an OOM. I think it might be wise to document this and to issue a warning in the logs, so the devs do know that this might be the underlying problem.

RestEasy on the other hand uses httpclient by default.

Tasks:
* Implement a warning before each upload of (possibly) larger entities, unless configured deactivated.
* Update documentation to include a warning.

Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.