evanw / evanw/node-source-map-support

How to use resetRetrieveHandlers ?

Open
#277 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Description

Hello,

I suspect the library to generate a memory leak :/
After some research, I found this PR #215 that seems to be a good fix :)

However, I doesn't see anywhere how I am supposed to use it, should I add a :
```js
setInterval(() => sourceMapSupport.resetRetrieveHandlers(), 60000); // clean every minute
```
in my app ?

This seems a bit strange to me.
For more context, my app is a web micro-service that treat http requests and amqp messages.

Thanks in advance for any advice :smile:

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.