System.IO.IOException: Too many open files

二次信任 提交于 2019-12-21 23:17:58

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!