Bug 43502 - Too many open files
Summary: Too many open files
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Runtime
Classification: Mono
Component: io-layer ()
Version: 4.4.0 (C7)
Hardware: PC All
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-08-18 09:00 UTC by Rogier Rietdijk
Modified: 2017-09-21 23:38 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Rogier Rietdijk 2016-08-18 09:00:59 UTC
Hi,

I'm using xs 6 with mono 4.4.0. When i start the xsp server within xs i get the error 'too many open files'.


 at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00050] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:496 
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern) [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/corlib/System.IO/Directory.cs:322 
  at System.Web.Hosting.ApplicationHost.FindWebConfig (System.String basedir) [0x00018] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs:56 
  at System.Web.Configuration.WebConfigurationHost.GetWebConfigFileName (System.String dir) [0x00027] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs:292 
  at System.Web.Configuration.WebConfigurationManager.FindWebConfig (System.String path, System.Boolean& inAnotherApp) [0x0014c] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:527 
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password, Boolean fweb) [0x00026] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:261 
  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path, System.Web.HttpContext context) [0x0000d] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:350 
  at System.Web.Configuration.WebConfigurationManager.GetSection (System.String sectionName, System.String path) [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationManager.cs:329 
  at System.Web.WebPages.Deployment.WebPagesDeployment.GetAppSettings (System.String path) [0x0000e] in <filename unknown>:0 
  at System.Web.WebPages.Deployment.WebPagesDeployment.IsExplicitlyDisabled (System.String path) [0x00018] in <filename unknown>:0 
  at System.Web.WebPages.WebPageRoute.<.cctor>b__0 () [0x00000] in <filename unknown>:0 
  at System.Lazy`1[T].CreateValue () [0x00075] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/Lazy.cs:437 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143 
  at System.Lazy`1[T].get_Value () [0x00032] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/Lazy.cs:330 
  at System.Web.WebPages.WebPageRoute.get_IsExplicitlyDisabled () [0x00010] in <filename unknown>:0 
  at System.Web.WebPages.WebPageRoute.DoPostResolveRequestCache (System.Web.HttpContextBase context) [0x00000] in <filename unknown>:0 
  at System.Web.WebPages.WebPageHttpModule.OnApplicationPostResolveRequestCache (System.Object sender, System.EventArgs e) [0x00016] in <filename unknown>:0 
  at System.Web.HttpApplication+<RunHooks>c__Iterator0.MoveNext () [0x001ba] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/HttpApplication.cs:1030 
  at System.Web.HttpApplication+<Pipeline>c__Iterator1.MoveNext () [0x006f3] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/HttpApplication.cs:1238 
  at System.Web.HttpApplication.Tick () [0x00000] in /private/tmp/source-mono-4.4.0-c7sr1/bockbuild-mono-4.4.0-branch-c7sr1/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Web/System.Web/HttpApplication.cs:927
Comment 1 Alex Rønne Petersen 2016-08-29 06:40:12 UTC
I believe this is happening because System.IO.Directory.EnumerateKind () suffers from the same problem that was fixed in this PR: https://github.com/mono/mono/pull/3426
Comment 2 Ludovic Henry 2017-09-06 17:50:26 UTC
Can you still reproduce with latest version of Mono 5.4.0.135 (2017-06/6425f06) or later? Thank you
Comment 3 Rogier Rietdijk 2017-09-18 13:15:54 UTC
No i can't :-)
Comment 4 Ludovic Henry 2017-09-21 23:38:38 UTC
User can't reproduce, marking as resolved.