Possible perf_hooks memory leak detected.
See original GitHub issueI am reporting:
- a bug or unexpected behavior
- general feedback
- feature request
- security issue
Bug Report
Please give us details about your installation to assist you. Run dat -v
to see the version of Dat you are using.
- Operating system: Ubuntu 18.04
- Node Version: 9.11.1
- Dat Version: 13.11.3
- Shell: fish
Expected behavior
Share a folder and watch upload and download
Actual behavior
Sharing a folder with dat share folder
for more than 3 minutes prints (node:5968) Warning: Possible perf_hooks memory leak detected. There are 4307 entries in the Performance Timeline. Use the clear methods to remove entries that are no longer needed or set performance.maxEntries equal to a higher value (currently the maxEntries is 150).
in the console. The number keeps increasing, 4307 was after 28 minutes of sharing a folder
Debug Logs
dat Dat DEBUG mode engaged, enabling quiet mode +0ms dat dat 13.11.3 +7ms dat node v9.11.1 +0ms dat Sharing archive { _: [ ‘memes/’ ], utp: true, debug: false, quiet: true, sparse: false, import: true, ignoreHidden: true, ‘ignore-hidden’: true, watch: true, logspeed: 400, dir: ‘memes/’ } +0ms dat-node archive ready. version: 2 +0ms dat-node importFiles() { watch: true, dereference: true, count: true, indexing: true, _: [ ‘memes/’ ], utp: true, debug: false, quiet: true, sparse: false, import: true, ignoreHidden: true, ‘ignore-hidden’: true, logspeed: 400, dir: ‘memes/’, ignore: [Function: ignore] } +0ms dat-node IMPORT ignore: / +51ms dat-node IMPORT ignore: /.dat +1ms dat-node IMPORT ignore: /.dat/content.bitfield +5ms dat-node IMPORT ignore: /.dat/content.key +0ms dat-node IMPORT ignore: /.dat/content.secret_key +1ms dat-node IMPORT ignore: /.dat/content.signatures +0ms dat-node IMPORT ignore: /.dat/content.tree +1ms dat-node IMPORT ignore: /.dat/metadata.bitfield +0ms dat-node IMPORT ignore: /.dat/metadata.data +0ms dat-node IMPORT ignore: /.dat/metadata.key +1ms dat-node IMPORT ignore: /.dat/metadata.latest +0ms dat-node IMPORT ignore: /.dat/metadata.ogd +0ms dat-node IMPORT ignore: /.dat/metadata.signatures +1ms dat-node IMPORT ignore: /.dat/metadata.tree +0ms dat-node IMPORT skip: /dat.json +2ms dat-node IMPORT skip: /t.png +0ms
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:9 (1 by maintainers)
Top GitHub Comments
Seeing this too with dat 13.11.4 and node v8.12.0.
Using node v10.12.0 makes the warning go away.
I think that nanobus leaks memory and the problem relate this issue(https://github.com/choojs/nanobus/issues/32).