Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error too many open files, uv_resident_set_memory #218

Open
fibonacci998 opened this issue Nov 2, 2022 · 0 comments
Open

Error too many open files, uv_resident_set_memory #218

fibonacci998 opened this issue Nov 2, 2022 · 0 comments
Assignees

Comments

@fibonacci998
Copy link

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();

@sv2 sv2 self-assigned this Nov 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants