-
Notifications
You must be signed in to change notification settings - Fork 101
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
Threads created by aws/client
are never cleaned up
#80
Comments
This is a major problem for us, this has caused thousands of threads to be created: We will be working on replacing the internal http client with ours as mentioned: Here are is the initial step at decomplecting some parts of the internals: |
@thenonameguy thanks for digging out the metadata utils issue. We'll definitely address that (probably in the next release). As for the rest, we don't accept PRs for this project. We are currently working on an interface to supply your own http client, and we do plan to address some of the other issues your PR deals with. |
@levand there is already a |
Fixed in 0.8.335. |
Invoking
cognitect.aws.client.api/client
causes the underlying HTTP library to create a pool of ~9 threads (which seems excessive itself, but that's a different issue). These are never released, even when the returned client object goes out of scope.Eventually, in applications that make repeated calls to
client
, the JVM will hit the OS limit on thread creation and crash.Workaround: memoize invocations of the
client
function, or otherwise ensure that theclient
function isn't invoked more than once for each service.The text was updated successfully, but these errors were encountered: