Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce netty pool size #1944

Merged
merged 1 commit into from
Nov 3, 2021
Merged

Reduce netty pool size #1944

merged 1 commit into from
Nov 3, 2021

Conversation

trask
Copy link
Member

@trask trask commented Nov 1, 2021


public class LazyHttpClient implements HttpClient {

private static final String APPLICATIONINSIGHTS_AUTHENTICATION_SCOPE =
"https://monitor.azure.com//.default";

private static final HttpClient INSTANCE = new LazyHttpClient();
private static final int DEFAULT_MAX_TOTAL_CONNECTIONS = 200;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

200 to 1? what is the motivation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

200 is a different number, I don't think we need a non-default value for that.

1 is the number of threads (down from default which is based on cpu-count).

the motivation is in the comment below (to reduce memory consumption, which was a regression in 3.2.0 when we switched http clients)

@trask trask merged commit 7e4aa40 into main Nov 3, 2021
@trask trask deleted the reduce-pool-size branch November 3, 2021 22:35
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.

2 participants