You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our application uses the Producer client to make the GetMetadata API call. We have observed that the application's memory usage increases whenever it makes this call. Interestingly, it does not go back to the original value thereafter. The increase appears to be directly proportional to the number of topics.
To confirm that the issue is with the package, we wrote a simple application to just create a new producer client and make the GetMetadata call in a loop. The memory usage graph looks like this
It can be seen that memory usage increased from around 1.5MB before the loop to around 60MB during the loop and then settled at 23MB after the loop.
We tried the same thing with Admin client. The memory usage graph looks like this
It shows a similar pattern with lower values. Memory usage increased from 1MB before the loop to 23MB during the loop and then settled at 19MB after the loop.
How to reproduce
It can be reproduced by creating the client and making the GetMetadata call in a loop.
Code:
Description
Our application uses the
Producer
client to make theGetMetadata
API call. We have observed that the application's memory usage increases whenever it makes this call. Interestingly, it does not go back to the original value thereafter. The increase appears to be directly proportional to the number of topics.To confirm that the issue is with the package, we wrote a simple application to just create a new producer client and make the GetMetadata call in a loop. The memory usage graph looks like this
It can be seen that memory usage increased from around 1.5MB before the loop to around 60MB during the loop and then settled at 23MB after the loop.
We tried the same thing with
Admin
client. The memory usage graph looks like thisIt shows a similar pattern with lower values. Memory usage increased from 1MB before the loop to 23MB during the loop and then settled at 19MB after the loop.
How to reproduce
It can be reproduced by creating the client and making the
GetMetadata
call in a loop.Code:
Checklist
Please provide the following information:
v2.3.0
):ConfigMap{...}
"debug": ".."
as necessary)The text was updated successfully, but these errors were encountered: