You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use swagger-stats in WSL2, when call constructor there is an error Error: EMFILE: too many open files, uv_resident_set_memory at process.memoryUsage (internal/process/per_thread.js:153:5) at SwsSysStats.calculateSystemStats (/home/tuan1998/aura-sync/crawl-system/node_modules/swagger-stats/lib/swssysstats.js:83:32) at SwsSysStats.tick (/home/tuan1998/aura-sync/crawl-system/node_modules/swagger-stats/lib/swssysstats.js:77:14) at Timeout.tick [as _onTimeout] (/home/tuan1998/aura-sync/crawl-system/node_modules/swagger-stats/lib/swsProcessor.js:126:23) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:498:7) { errno: -24, code: 'EMFILE', syscall: 'uv_resident_set_memory' }
It should be has a try catch outside this statement let memUsage = process.memoryUsage();
The text was updated successfully, but these errors were encountered:
I use swagger-stats in WSL2, when call constructor there is an error
Error: EMFILE: too many open files, uv_resident_set_memory at process.memoryUsage (internal/process/per_thread.js:153:5) at SwsSysStats.calculateSystemStats (/home/tuan1998/aura-sync/crawl-system/node_modules/swagger-stats/lib/swssysstats.js:83:32) at SwsSysStats.tick (/home/tuan1998/aura-sync/crawl-system/node_modules/swagger-stats/lib/swssysstats.js:77:14) at Timeout.tick [as _onTimeout] (/home/tuan1998/aura-sync/crawl-system/node_modules/swagger-stats/lib/swsProcessor.js:126:23) at listOnTimeout (internal/timers.js:557:17) at processTimers (internal/timers.js:498:7) { errno: -24, code: 'EMFILE', syscall: 'uv_resident_set_memory' }
It should be has a try catch outside this statement
let memUsage = process.memoryUsage();
The text was updated successfully, but these errors were encountered: