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

Default connection pool size of RestClient is too small. #128

Closed
ujjboy opened this issue May 17, 2018 · 0 comments
Closed

Default connection pool size of RestClient is too small. #128

ujjboy opened this issue May 17, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@ujjboy
Copy link
Member

ujjboy commented May 17, 2018

Describe the bug

See code at com.alipay.sofa.rpc.transport.rest.RestClientTransport#buildProxy

 ResteasyClient client = builder.registerProvider().logProviders()
            .connectionPoolSize(transportConfig.getConnectionNum())
            .build();

The default value of transportConfig.getConnectionNum() is 1, the performance of rest client is dependence to connection pool size.

Steps to reproduce

Use rest client with multiple threads.

Environment

  • SOFARPC version: 5.3.2
  • JVM version (e.g. java -version): 1.7.0_80
  • OS version (e.g. uname -a): OSX
  • Maven version: 3.2.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant