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

OSX Dynamic Scraper Error: spawn EMFILE #40

vdraceil opened this Issue Jun 28, 2015 · 1 comment


None yet
2 participants

vdraceil commented Jun 28, 2015

This happens to me more frequently (in OSX) when using DynamicScraper.
Is this possibly because of routing too many URLs? ... may be, too many Phantom instances are getting created.

    throw errnoException(process._errno, 'spawn');
Error: spawn EMFILE
    at errnoException (child_process.js:1011:11)
    at ChildProcess.spawn (child_process.js:958:11)
    at exports.spawn (child_process.js:746:9)
    at spawn (/Users/kannanv/Personal/Workplace/helloworld/node_modules/scraperjs/node_modules/phantom/node_modules/win-spawn/index.js:54:10)
    at startPhantomProcess (/Users/kannanv/Personal/Workplace/helloworld/node_modules/scraperjs/node_modules/phantom/phantom.js:17:12)
    at Server.<anonymous> (/Users/kannanv/Personal/Workplace/helloworld/node_modules/scraperjs/node_modules/phantom/phantom.js:115:14)
    at Server.emit (events.js:92:17)
    at net.js:1056:10
    at process._tickCallback (node.js:442:13)

This comment has been minimized.


ruipgil commented Jun 29, 2015

Yes, it looks like the problem may be related with it.
Try increasing the ulimit: gruntjs/grunt#788 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment