Skip to content

Memory leak starting with version 3.0.12 #174

@fpavageau

Description

@fpavageau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions