在docker上部署xprofiler-console项目报错,Error: EMFILE: too many open files, watch '/home/homework/nodeapp/xprofiler-console/app/extend'
vius opened this issue · 7 comments
想问下有没有遇到同样问题的同学
怎么部署的?
怎么部署的?
通过git代码同步到服务器端 然后npm run start,就报错了,下面是报错信息
Got error when startup:
[egg-scripts] 2021-03-08 19:38:32,273 ERROR 5664 nodejs.AppWorkerDiedError: [master] app_worker#45:5985 died (code: null, signal: SIGKILL, suicide: false, state: dead), current workers: ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96"]
怎么部署的?
通过git代码同步到服务器端 然后npm run start,就报错了,下面是报错信息
Got error when startup:
[egg-scripts] 2021-03-08 19:38:32,273 ERROR 5664 nodejs.AppWorkerDiedError: [master] app_worker#45:5985 died (code: null, signal: SIGKILL, suicide: false, state: dead), current workers: ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96"]
96 个进程。。。读到宿主机的 cpu 了吧,参照 egg 的文档手动制定下 worker 的数量
怎么部署的?
通过git代码同步到服务器端 然后npm run start,就报错了,下面是报错信息
Got error when startup:
[egg-scripts] 2021-03-08 19:38:32,273 ERROR 5664 nodejs.AppWorkerDiedError: [master] app_worker#45:5985 died (code: null, signal: SIGKILL, suicide: false, state: dead), current workers: ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96"]
npm run dev和npm run start 都不行 都有报错信息
参考这个:https://www.npmjs.com/package/egg-scripts
egg-scripts 加一个 --workers=4
文档的常见问题里增加了你的这个 case:https://www.yuque.com/hyj1991/easy-monitor/question#dOKeL