Question: Error: EMFILE: too many open files
See original GitHub issueAt first, thanks for this reader.
I want to read over 80k mp3 tags for my Software. But after 7k the performance break down an finished with:
Error: EMFILE: too many open files....
Can someone help me to queue the async calls, with async or something like that: https://caolan.github.io/async/docs.html#queue
Thanks
me code now is:
walker = walk.walk("/Volumes/..");
var mm = require('music-metadata');
const util = require('util');
walker.on("file", function (root, fileStats, next) {
//todo, noch die anderen file extension freigeben
if (path.extname(fileStats.name) === ".mp3") {
mm.parseFile(path.join(root, fileStats.name)).then(function (metadata) {
console.log(util.inspect(metadata, { showHidden: false, depth: null }));
}).catch(function (err) {
console.error(err.message);
});
}
next();
});
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
node and Error: EMFILE, too many open files - Stack Overflow
After a number of searches I found a work around for the "too many open files" problem: var requestBatches = {}; function batchingReadFile(filename,...
Read more >EMFILE: too many open files, watch · Issue #923 - GitHub
i'm facing below issue while generating archive in xcode node:events:371 throw er; // Unhandled 'error' event ^ Error: EMFILE: too many open ......
Read more >How to fix the: "EMFILE: too many open files, watch" error in ...
A quick guide to how I solved a confusing React Native error. ... How to fix the: "EMFILE: too many open files, watch"...
Read more >KB20737: “System Error (EMFILE): Too many open files” error ...
System Error (EMFILE): Too many open files” error appears when running reports in MicroStrategy Web 9.x.
Read more >"EMFILE: too many open files error" while CI/CD deploy
I can upload my code from my local with sls deploy. It works well. No problem. So i think there is no problem...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Following code parsed 48k files without any issue:
Version 0.8.0 works even better. if the mp3 collection is free from scrap all works fine. If not, you have an problem not the lib…
Thanks for the great support!