← Back to team overview

nunit-core team mailing list archive

Re: [Bug 993247] Re: Tests fail with IOException: Too many open files

 

this seems to be a well-known occurrence for oracle users on linux so maybe
linux users would know how to increase the max number of file descriptors
through the shell..just like increasing VM in windows. maybe clr should
provide for a command line switch to increase the max file descriptor.

jv

On Wed, May 2, 2012 at 6:48 PM, Eberhard Beilharz <993247@xxxxxxxxxxxxxxxxxx
> wrote:

> It turns out that AssemblyReader opens a dll and closes it in
> AssemblyReader.Dispose. However, AssemblyResolver that creates
> AssemblyReader never disposes it, so the files stays open until
> eventually GC calls Dispose. On Linux this causes us to eventually run
> out of file handles.
>
> Attached is a suggested fix. I did not include a unit test because I
> don't know how I could test this specific scenario.
>
> ** Patch added: "Suggested fix"
>
> https://bugs.launchpad.net/nunitv2/+bug/993247/+attachment/3125057/+files/Bug-993247-Fix-Too-many-open-files-problem-when-runn.patch
>
> --
> You received this bug notification because you are a member of NUnit
> Developers, which is subscribed to NUnit V2.
> https://bugs.launchpad.net/bugs/993247
>
> Title:
>  Tests fail with IOException: Too many open files
>
> Status in NUnit V2 Test Framework:
>  New
>
> Bug description:
>  When I run the unit tests of our project on Linux they fail with an
>  IOException: Too many open files. The tests work fine on Windows, and
>  they work if I run them fixture by fixture, or if I run them in the
>  GUI.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunitv2/+bug/993247/+subscriptions
>


-- 
Regards,

Ravichandran Jv
http://ravichandranjv.blogspot.com

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/993247

Title:
  Tests fail with IOException: Too many open files

Status in NUnit V2 Test Framework:
  Triaged

Bug description:
  When I run the unit tests of our project on Linux they fail with an
  IOException: Too many open files. The tests work fine on Windows, and
  they work if I run them fixture by fixture, or if I run them in the
  GUI.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/993247/+subscriptions


References