Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on large project keep getting: java.io.FileNotFoundException - Too many open files #39

Open
GoogleCodeExporter opened this issue Oct 23, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

running on a larger project (some 3.5 million lines of code, about 3500
classes) (JAVA - build 14.0-b16, Ubuntu 9.04 64bit)

quite quickly I will get

 java.io.FileNotFoundException - Too many open files

in the stacktrace below i took out the name of my file and replaced it with
... 

It does look like its opening the same files many many many times..

 "main" java.lang.RuntimeException: java.io.FileNotFoundException: ... (Too
many open files)
    at
com.google.classpath.DirectoryClassPath.getResourceAsStream(DirectoryClassPath.j
ava:82)
    at
com.google.classpath.CompositeClassPath.getResourceAsStream(CompositeClassPath.j
ava:67)
    at
com.google.test.metric.JavaClassRepository.inputStreamForClass(JavaClassReposito
ry.java:59)
    at
com.google.test.metric.JavaClassRepository.getClass(JavaClassRepository.java:47)
    at
com.google.test.metric.asm.ClassInfoBuilderVisitor.visit(ClassInfoBuilderVisitor
.java:41)
    at com.google.test.org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.google.test.org.objectweb.asm.ClassReader.accept(Unknown Source)
    at
com.google.test.metric.JavaClassRepository.parseClass(JavaClassRepository.java:7
7)
    at
com.google.test.metric.JavaClassRepository.getClass(JavaClassRepository.java:47)
    at
com.google.test.metric.TestabilityVisitor$Frame.recordMethodCall(TestabilityVisi
tor.java:360)
    at
com.google.test.metric.method.op.turing.MethodInvokation.visit(MethodInvokation.
java:67)
    at
com.google.test.metric.TestabilityVisitor$Frame.applyMethodOperations(Testabilit
yVisitor.java:333)
    at
com.google.test.metric.TestabilityVisitor$Frame.recordMethodCall(TestabilityVisi
tor.java:348)
    at
com.google.test.metric.TestabilityVisitor$Frame.recordNonOveridableMethodCall(Te
stabilityVisitor.java:388)
    at
com.google.test.metric.TestabilityVisitor$CostRecordingFrame.applyImplicitCost(T
estabilityVisitor.java:144)
    at
com.google.test.metric.MetricComputer.addSetterInjection(MetricComputer.java:94)
    at com.google.test.metric.MetricComputer.compute(MetricComputer.java:82)
    at com.google.test.metric.MetricComputer.compute(MetricComputer.java:56)
    at com.google.test.metric.Testability.execute(Testability.java:272)
    at com.google.test.metric.Testability.main(Testability.java:142)
    at com.google.test.metric.Testability.main(Testability.java:135)
Caused by: java.io.FileNotFoundException: .... (Too many open files)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at
com.google.classpath.DirectoryClassPath.getResourceAsStream(DirectoryClassPath.j
ava:80)

Original issue reported on code.google.com by martin.c...@gmail.com on 13 Aug 2009 at 6:08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant