We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
//-Xms20m -Xmx20m for (int i = 0; i < 60000; i++) { OSSClient ossClient = new OSSClient(endpoint, accessKeyId, accessKeySecret); ossClient.putObject("<test-bucket>", "test1234" + UUID.randomUUID(), new File("d:/file.txt")); System.out.println("size="+IdleConnectionReaper.size()); Thread.sleep(2); }
PoolingHttpClientConnectionManager类无限增长~~~ 项目里OSSClient没有使用单例,且没有调用shutdown(),我想问下原本就是这么设计的么?
The text was updated successfully, but these errors were encountered:
这个我们也踩过坑,非单例一定要释放掉client
Sorry, something went wrong.
@ChetWang 我觉得官方应该限制PoolingHttpClientConnectionManager数量,防止用户犯错,超过数量抛出异常
关键官方的demo 里面没有shutdown
官方的demo里面有shutdown啊
关键官方的demo 里面没有shutdown 官方的demo里面有shutdown啊
应该是后加的吧
No branches or pull requests
PoolingHttpClientConnectionManager类无限增长~~~
项目里OSSClient没有使用单例,且没有调用shutdown(),我想问下原本就是这么设计的么?
The text was updated successfully, but these errors were encountered: