5 ms·
Just got this error when hitting the site. I guess node isn't the end-all-be-all magic bullet for scalability everyone thinks it is? Error: EMFILE, too man
by whalesalad 13y ago
Just got this error when hitting the site. I guess node isn't the end-all-be-all magic bullet for scalability everyone thinks it is?
Error: EMFILE, too many open files '/home/ubuntu/robocoin/robocoin-website/views/index.html'
at Object.fs.openSync (fs.js:427:18)
at fs.readFileSync (fs.js:284:15)
at View.exports.renderFile [as engine] (/home/ubuntu/robocoin/robocoin-website/node_modules/ejs/lib/ejs.js:312:9)
at View.render (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/view.js:75:8)
at Function.app.render (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/application.js:504:10)
at ServerResponse.res.render (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/response.js:753:7)
at exports.index (/home/ubuntu/robocoin/robocoin-website/routes/index.js:8:9)
at callbacks (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/router/index.js:161:37)
at param (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/router/index.js:135:11)
at pass (/home/ubuntu/robocoin/robocoin-website/node_modules/express/lib/router/index.js:142:5)
- crindy 13y agoActing like this site is proof that node doesn't scale is just plain silly.
- est 13y agotoo many open files, Ubuntu has default /proc/sys/fs/file-max of 1024. It's an SA problem, not dev problem.
- pkhamre 13y agoIf SA and dev had a great cooperation from an early point, the developer would have told the SA about the platform requirements.
- Tarang 13y agoThis error isn't from node rather the OS has a limit on the number of files than can be open at once. The same limit would apply for another language/stack