NodeJS error “EMFILE, too many open files” on Mac OS

后端 未结 11 653
醉话见心
醉话见心 2020-12-22 16:53

For sometime I am having the following error:

Error: EMFILE, too many open files  \'/Users/blagus/Gallery/Websites/Nicsware/Pills/resources/core/auth.node.js         


        
11条回答
  •  Happy的楠姐
    2020-12-22 17:10

    Check your ulimit. For example initialy my ulimit on OSX was 256.

    • Run ulimit -n to see the limit.
    • Afterwards You can ulimit -n 1024 to set a higher limit.

提交回复
热议问题