matehat / brewer.js

Your asset management best friend
81 stars 3 forks source link

Too many open files #6

Open matehat opened 12 years ago

matehat commented 12 years ago
node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
Error: EMFILE, too many open files 'assets/src/_cache/common.js'
    at Object.openSync (fs.js:230:18)
    at Object.readFileSync (fs.js:120:15)
    at Object.checksumSync (/usr/local/lib/node_modules/brewer/lib/util.js:17:19)
    at File.stamp (/usr/local/lib/node_modules/brewer/lib/file.js:128:35)
    at File.watch (/usr/local/lib/node_modules/brewer/lib/file.js:99:14)
    at /usr/local/lib/node_modules/brewer/lib/package.js:226:35
    at Array.0 (/usr/local/lib/node_modules/brewer/lib/package.js:229:12)
    at EventEmitter._tickCallback (node.js:192:40)
matehat commented 12 years ago

The problem didn't show up again, so it's hard to diagnose. Will be monitoring closely and reopen if we can get a better grasp at the issue.

matehat commented 12 years ago

Here is what happened just before failing in the same way again

https://gist.github.com/1885589

matehat commented 12 years ago

This seems to have to do with reloading after changes. This changes significantly in 0.4, so the problem should disappear by then.