Skip to content

Memory leak starting with version 3.0.12 #174

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

Closed
fpavageau opened this issue Apr 1, 2020 · 0 comments · Fixed by #175
Closed

Memory leak starting with version 3.0.12 #174

fpavageau opened this issue Apr 1, 2020 · 0 comments · Fixed by #175

Comments

@fpavageau
Copy link
Contributor

This refactoring between 3.0.11 and 3.0.12 introduced a memory leak, through the dynamic creation of debug instances. See debug-js/debug#678, and the possible fix currently waiting in debug-js/debug#740. This impacts apigee-internal/microgateway in version 3.1.0 and above.

A possible fix is to locally cache the debug instance created for each component, instead of creating a new one for each request.

It would also be possible to pass the existing debug instance instead of the component name as the parameter to checkIfAuthorized(), but I guess it's less abstract.

fpavageau added a commit to fpavageau/microgateway-plugins that referenced this issue Apr 1, 2020
fpavageau added a commit to fpavageau/microgateway-plugins that referenced this issue Apr 1, 2020
fpavageau added a commit to fpavageau/microgateway-plugins that referenced this issue Apr 15, 2020
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 a pull request may close this issue.

1 participant