question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible perf_hooks memory leak detected.

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
millettecommented, Sep 22, 2018

Seeing this too with dat 13.11.4 and node v8.12.0.

Using node v10.12.0 makes the warning go away.

1reaction
saggggocommented, Nov 13, 2018

I think that nanobus leaks memory and the problem relate this issue(https://github.com/choojs/nanobus/issues/32).

screenshot from

Read more comments on GitHub >

github_iconTop Results From Across the Web

Possible perf_hooks memory leak detected #199 - GitHub
Possible perf_hooks memory leak detected #199 ... Actually I found it may be a bug of nanobus which used by webpack-serve to emit...
Read more >
possible EventEmitter memory leak detected - node.js
I'd like to point out here that that warning is there for a reason and there's a good chance the right fix is...
Read more >
Node.js Memory Leak Detection: How to Debug & Avoid Them
Learn what Node.js memory leaks are. Discover common causes and go through the whole debugging process, from detection to fixing and ...
Read more >
Understanding memory leaks in node.js part 2 - alxolr
The following example will show an easy way to add a memory leak in your code, ... MaxListenersExceededWarning: Possible EventEmitter memory leak detected....
Read more >
How to Find, Fix, and Prevent Node.js Memory Leaks
APM tools help detect the memory bloat early, which helps avoid potential memory leaks. For more in-depth content around web development and a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found