{"action":"created","issue":{"url":"https://api.github.com/repos/derbyjs/derby-examples/issues/52","labels_url":"https://api.github.com/repos/derbyjs/derby-examples/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/derbyjs/derby-examples/issues/52/comments","events_url":"https://api.github.com/repos/derbyjs/derby-examples/issues/52/events","html_url":"https://github.com/derbyjs/derby-examples/issues/52","id":51234441,"number":52,"title":"Error: EMFILE","user":{"login":"codingisacopingstrategy","id":56819,"avatar_url":"https://avatars.githubusercontent.com/u/56819?v=3","gravatar_id":"","url":"https://api.github.com/users/codingisacopingstrategy","html_url":"https://github.com/codingisacopingstrategy","followers_url":"https://api.github.com/users/codingisacopingstrategy/followers","following_url":"https://api.github.com/users/codingisacopingstrategy/following{/other_user}","gists_url":"https://api.github.com/users/codingisacopingstrategy/gists{/gist_id}","starred_url":"https://api.github.com/users/codingisacopingstrategy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingisacopingstrategy/subscriptions","organizations_url":"https://api.github.com/users/codingisacopingstrategy/orgs","repos_url":"https://api.github.com/users/codingisacopingstrategy/repos","events_url":"https://api.github.com/users/codingisacopingstrategy/events{/privacy}","received_events_url":"https://api.github.com/users/codingisacopingstrategy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-07T22:28:40Z","updated_at":"2015-09-30T02:12:54Z","closed_at":"2015-02-24T23:58:34Z","body":"Just a heads up,\r\n\r\nrunning `node server.js` in the root folder, on OS X 10.10 gives the following error:\r\n\r\n    ~/derby-examples/node_modules/derby-starter/lib/index.js:16\r\n          if (err) throw err;\r\n                         ^\r\n    Error: EMFILE, open '~/derby-examples/node_modules/derby/node_modules/racer/package.json'\r\n\r\nThis problem is pretty well documented online: it has to do with the fact that node runs into the OS’ limit on the maximum number of files opened simultanously. See for instance https://github.com/substack/node-browserify/issues/431\r\n\r\nYou can work around it by typing `ulimit -n 2560` into your terminal before launching the application, @karl  suggests putting such a line in the `~/.bash_profile` file.\r\n\r\nThe problem disappears if you try run just one of the examples at a time. Not sure if this problem requires fixing because it might be quite complex to do so—and it doesn’t seem very useful to open up all the examples at the same time anyway…\r\n\r\nCheers,"},"comment":{"url":"https://api.github.com/repos/derbyjs/derby-examples/issues/comments/144258919","html_url":"https://github.com/derbyjs/derby-examples/issues/52#issuecomment-144258919","issue_url":"https://api.github.com/repos/derbyjs/derby-examples/issues/52","id":144258919,"user":{"login":"jritsema","id":934927,"avatar_url":"https://avatars.githubusercontent.com/u/934927?v=3","gravatar_id":"","url":"https://api.github.com/users/jritsema","html_url":"https://github.com/jritsema","followers_url":"https://api.github.com/users/jritsema/followers","following_url":"https://api.github.com/users/jritsema/following{/other_user}","gists_url":"https://api.github.com/users/jritsema/gists{/gist_id}","starred_url":"https://api.github.com/users/jritsema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jritsema/subscriptions","organizations_url":"https://api.github.com/users/jritsema/orgs","repos_url":"https://api.github.com/users/jritsema/repos","events_url":"https://api.github.com/users/jritsema/events{/privacy}","received_events_url":"https://api.github.com/users/jritsema/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T02:12:54Z","updated_at":"2015-09-30T02:12:54Z","body":"For me, this went away after upgrading node from v0.10 to v0.12"}}