问题
I'm getting this error intermittently when debugging my ServiceStack web app on Mac OS X.
I can't seem to pinpoint what it is, I've tried killing the xamarin web server by using this command:
ps aux | grep xsp4 | grep -v grep | awk '{print $2}' | xargs kill -9
I've tried renewing my DHCP lease and clearing my DNS cache. Even tried restarting the entire Mac.
Mind you there doesn't seem to be anything wrong with the code, because when I run the Xamarin web server manually with this command:
xsp4 --root ~/Development/PROJ_FOLDER --port 8080
it works fine... I only see the issue when I run the application from Xamarin Studio.
Any ideas?
回答1:
I solved a similar issue by disabling Mono's file watcher due to a bug.
In the terminal:
export MONO_MANAGED_WATCHER=disabled
You might also want to look here.
来源:https://stackoverflow.com/questions/28534828/system-io-ioexception-too-many-open-files