vscode-react-native icon indicating copy to clipboard operation
vscode-react-native copied to clipboard

Too many files open on system

Open MSLaguana opened this issue 10 years ago • 4 comments

When I've been testing things out and repeatedly starting debugging sessions and killing them, I sometimes get error messages complaining about too many files being opened. This may be due to us running the packager in the process being debugged, so when it gets terminated it doesn't have a chance to clean up after itself.

MSLaguana avatar Feb 15 '16 06:02 MSLaguana

Is it possible to use lsof or a similar tool to find out which files are opened when you get that error, and who opened them?

digeff avatar Feb 16 '16 16:02 digeff

When this happens it suggests running watchman with certain arguments, and that clears things up so I suspect it is the watchman service watching the same files too much or something of the sort.

MSLaguana avatar Feb 16 '16 16:02 MSLaguana

What's the exact error? Have you checked if this is a known react native issue by any chance?

digeff avatar Feb 16 '16 16:02 digeff

Haven't seen this happen since the first instance, probably fixed.

MSLaguana avatar Jul 05 '16 21:07 MSLaguana