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 in #3 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adamprescott
Copy link

Everytime Route.match is being called by the app, it'll create a new instance of shim.recordMiddleware eventually causing a memory leak.
I believe the fix for this is to just remove this.Route.match = , it'll also create neater traces in New Relic

Everytime `Route.match` is being called by the app, it'll create a new instance of `shim.recordMiddleware` eventually causing a memory leak.
I believe the fix for this is to just remove `this.Route.match = `, it'll also create neater traces in New Relic
@adamprescott adamprescott mentioned this pull request Jul 27, 2022
@saqib-ahmed
Copy link

Just in case someone's looking for a solution to this, you can use this node module until this PR gets merged.

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