-
Notifications
You must be signed in to change notification settings - Fork 158
Description
We are using the AWS SDK
AsyncClient, which uses a short-lived threads (around 10 seconds lifetime).
ThreadServicemaintains a cache that stores all thread names by their IDs, and it is supposed to remove entries older than 5 minutes on the next read.
ThreadStateSamplersamples threads every minute by default.The problem is that the sampler retrieves all threads every minute and writes them into the cache. But when it retrieves them again a minute later, most of those threads have already terminated and been replaced with new ones, which are then written into the cache again.
As a result, short-lived threads never get evicted, because in the current implementation they don’t appear during the next retrieval cycle, so they never get a chance to be removed.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status