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

Fix Memory Leak Issue of GCP PubSub #1284

Merged
merged 1 commit into from Oct 23, 2020
Merged

Fix Memory Leak Issue of GCP PubSub #1284

merged 1 commit into from Oct 23, 2020

Conversation

TsuyoshiUshio
Copy link
Contributor

@TsuyoshiUshio TsuyoshiUshio commented Oct 23, 2020

With the help of @OrenLederman , we found the root cause of the memory leak of #1257

The root cause is GCP scaler instantiate client for every GetMetrics() call.
I avoid to instantiate every time, then the big memory leak has gone.

However, there is tiny memory leak happens probably not on GCP Scaler.
I'll test by running keda several days and see if it is harmful or not with a Profiler.

Checklist

  • [-] Commits are signed with Developer Certificate of Origin (DCO)

Fixes #
#1257

Signed-off-by: Tsuyoshi Ushio <ushio@simplearchitect.com>
Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants