-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels