I have this issue as well - interestingly enough, also a webchat app, and when I have ~400 online users, I get the EMFILE error. From looking around at other issues with socket.io, it seems that this may be related to https://github.com/LearnBoost/socket.io/issues/438 - in fact, I believe the OP may have solved his problems by commenting out a line in socket.io:
"I have a m1.small on EC2, just with node (0.8.14) and socket.io (0.9.11) and I have this issue. After a while, nodejs got a "EMFILE" many times, without stop or restart (just with manual restart). I think that '677 hack' help a lot with 'EMFILE' error as well." Max, can you comment on the success of the '677 hack'? On Saturday, November 10, 2012 6:33:28 PM UTC-6, Maximiliano Guzenski wrote: > > Hi, > I have a webchat, running with socket.io (no redis) and express into a > EC2 m1.small. > When I have 420 online users, nodejs/socket.io go in an error looping... > in log I can see: > > warn: error raised: Error: accept EMFILE > warn: error raised: Error: accept EMFILE > warn: error raised: Error: accept EMFILE > warn: error raised: Error: accept EMFILE > ... many times ... > > ubuntu upstart doesn't detect this error, and my app be in an error loop > forever. > > I already setted "ulimit -n 200000" on linux, but it didn't fix this > issue. I changed /etc/limits.conf as well. > > I use nodejs 0.8.14 and last version of socket.io > > My app use less then 30% of memory and 10% of CPU. > > Please, anyone can helpe me? > > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
