Skip to content

Error: ENFILE: file table overflow and Too many open files in system #4672

@cyberz

Description

@cyberz

Vue - Official extension or vue-tsc version

v2.0.28

VSCode version

1.92.0

Vue version

3.3.11

TypeScript version

5.3.3

System Info

System: OS: macOS 14.6 CPU: (10) arm64 Apple M1 Pro Memory: 65.58 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.2/bin/yarn npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm Browsers: Chrome: 127.0.6533.90 Safari: 17.6

Steps to reproduce

While working on a project once a day I have next errors:
"ENFILE: file table overflow ..." and as result "Too many open files in system"

Random apps crash and won't launch

First I checked applications that opened a lot of files:
lsof -n +c 0 | cut -f1 -d' ' | uniq -c | sort | tail
result:

277 Electron 282 UserEvent 343 Code\x20H 380 corespotl 405 Dropbox 423 Google 589 Code\x20H 737 Google 33370 Code\x20H 65589 Code\x20H 

For display PID instead of application name:
lsof -n +c 0 | sed -E 's/^[^ ]+[ ]+([^ ]+).*$/\1/' | uniq -c | sort | tail
result:

260 83525 277 8145 282 1588 380 52538 423 76542 589 16855 16290 92232 16336 8637 33370 8636 65589 92363 

Process info:
ps aux | grep 92363
result:
92363 0.0 0.4 1596757920 62368 ?? S 2:44PM 0:58.75 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/alex/.vscode/extensions/vue.volar-2.0.28/server.js --node-ipc --clientProcessId=92229

Kill process:
sudo kill 92363

Check opened files again:
lsof -n +c 0 | cut -f1 -d' ' | uniq -c | sort | tail
result:

235 com.docker.backend 277 Electron 282 UserEventAgent 302 Dropbox 380 corespotlightd 423 Google\x20Chrome 473 Code\x20Helper\x20(Plugin) 589 Code\x20Helper\x20(Plugin) 610 Google\x20Chrome\x20Helper\x20(Renderer) 835 Code\x20Helper\x20(Plugin) 

What is expected?

What is actually happening?

Once a day I have next errors:
"ENFILE: file table overflow ..." and and as result "Too many open files in system"
Random apps crash and won't launch

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions